#[final] Sym
Symbols are interned identifiers used for dictionary keys and enum-like values.
Creating Symbols
Literal syntax with surrounding colons:
From a string with the lowercase sym coercion:
Enum-like values:
Dictionary keys:
Methods
(eq) other -> Bool
Symbols are compared by identity.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Value |
(lt) other -> Bool
Symbols compare lexicographically by name.
Parameters
| Name | Type | Description |
|---|---|---|
other |
Sym |