Fahrenheit provides specialized collection types: Stack, Queue, and List.
A Last-In-First-Out (LIFO) data structure.
push(item)pop()peek()isEmpty()size()clear()A First-In-First-Out (FIFO) data structure.
enqueue(item)dequeue()peek()isEmpty()size()clear()A dynamic list, currently implemented as an alias for standard Fahrenheit Arrays.
Maps are key-value data structures defined using the map keyword.
myMap = map {
"key1": "value1",
"key2": 100,
"nested": map { "x": 1 }
};
val = myMap["key1"];
val2 = myMap.key2;
myMap["key1"] = "New Value";
myMap.newKey = 500;
foreach (k : myMap) {
print(k + " -> " + myMap[k]);
}