Skip to content

Tutorial: Types: UN

molarmanful edited this page Nov 26, 2023 · 4 revisions

UN

Analogous to undefined/null/nil in other languages. Another way of thinking about UN is: assuming all sclin types are Maybe ANY, UN is Nothing and the other types are Just ANY.

UN

UN is falsy, and generally converts falsily to other types.

[ \>? \>N \>S \>A ] ( UN swap # ) map ,_
=> [$F 0 "" []]