Dictionaries
The following code examples demonstrate the built-in dictionary type offered by the language. See section [TBD] for details.
Type Declaration
Dict Name: {String: Int[-1]}.Accessing
Containment
some dict: {String: Int[-1]} ["A"[0], "B"[1], "C"];
some dict ("A"?) = true
some dict ("D"?) = falsesome dict: {String: Int[-1]} ["A"[0], "B"[1], "C"];
some dict ("A"?, "D"?) = {true, false}some dict: {String: Int[-1]} ["A"[0], "B"[1], "C"];
some dict ("A" ? -1) = 0
some dict ("D" ? -1) = -1some dict: {String: Int[-1]} ["A"[0], "B"[1], "C"];
some dict("A" ? -1, "D" ? -1) = {0, -1}Retrieving
Setting
Operators
Count
Difference (Remove Elements)
Equality
Setup
Approximate
Strict
Intersection
Union (Appending)
Last updated