Dict (dictionary)
Key-value pairs.
Syntax
d = Dict("k" => v) d["k"]Description
Key => value pairs are stored inside a Dict. Values are accessed by key; new pairs are added with d["k"]=v.
Example
Loading editor…
Expected output
Alex 2
When to use?
Holding the properties of an object; counting/grouping.