sym
Symbols are interned identifiers used for dictionary keys and enum-like values.
Creating Symbols
Literal syntax with surrounding colons:
From a string with sym:
Operations
Equality
Symbols are compared by identity:
Comparison
Symbols compare lexicographically by name:
Common Uses
Enum-like values:
Dictionary keys: