Map Functions

 

WIL maps are a form of associative array that shares square bracket notation and  variable type with regular WIL arrays.  Maps differ from regular WIL arrays because you use text strings instead of numeric indexes to access map elements.  Also, maps cannot be passed to any regular WIL array handling functions other than the ArrInfo function.

Maps can be iterated using the ForEach loop construct.

 

 

Function list

By type

Alphabetically

 

 

ForEach

ForEach key in map ... next

IntControl(100, p1, 0, 0, 0)

Sets minimum map lookup table size.

MapCreate( [keys-values[, kv-delimtier[, pr-delimiter]]] )

Creates a WIL map.

MapFileGetCsv( filename[, delimiter] )

Creates a WIL map from a file.

MapFilePutCsv( filename, map[, delimtier [,write-undef[, flags]]] )

Writes a WIL map to a file.

MapKeyExist( map, key )

Tests for existence of a key in a WIL map.

MapKeyFind( map, key[, not_found] )

Finds a key in a WIL map and returns its value.

MapKeyRemove( map, key )

Deletes a key-value pair from a WIL map.

MapKeysGet( map, return-type [, delimiter] )

Returns all the keys of a WIL map's key-value pairs.

MapValuesGet( map, return-type [, delimiter] )

Returns all the values of a WIL map's key-value pairs.