lang: funcs: Rename the lookup functions

This will make things more consistent with future use.
This commit is contained in:
James Shubin
2023-10-11 19:53:25 -04:00
parent 1dc6ebbffc
commit d1c15bd0b7
13 changed files with 78 additions and 81 deletions

View File

@@ -2,7 +2,7 @@ import "world"
$ns = "estate"
$exchanged = world.kvlookup($ns)
$state = maplookup($exchanged, $hostname, "default")
$state = map_lookup_optional($exchanged, $hostname, "default")
if $state == "one" or $state == "default" {