Dictionaries
The Dictionary module provides tools for working with key-value mappings in Nelson.
It supports creation and configuration of dictionaries with defined key and value types, querying and modifying entries, and managing the overall structure.
This module enables efficient storage, retrieval, and manipulation of data indexed by unique keys, making it ideal for associative arrays, lookups, and dynamic data management.
Functions
configureDictionary - Generate a dictionary with defined key and value types.
dictionary - Object that maps unique keys to values.
entries - Key-value pairs of dictionary.
insert - Add entries to a dictionary.
isConfigured - Check if dictionary has types assigned to keys and values.
isKey - Check if dictionary contains key
keyHash - Create a hash code for a dictionary key.
keyMatch - Check whether two dictionary keys are same.
keys - Keys of dictionary.
lookup - Find value in dictionary by key.
numEntries - Number of key-value pairs in dictionary.
remove - Remove dictionary entries.
types - Types of dictionary keys and values.
values - Values of dictionary.
Last updated
Was this helpful?