Types
Type Tags
Encodings for primitive types.
pinTag=0
lawTag=1
appTag=2
natTag=3
barTag=4
rowTag=5
tabTag=6
cowTag=7
setTag=8typeTag
Returns the type tag of a given value.
typeTag 42 == 3 ; natTag
typeTag [1 2 3] == 5 ; rowTag
typeTag #[a=1 b=2] == 6 ; tabTag{#datatype}
Macro for defining new datatypes.
{#datacase}
Macro for pattern matching on datatypes.
{#record}
Macro for defining record types.
Last updated