Turn
You can turn an optional none
value to an optional any
value, and vice-versa, with the turn ~
operator.
- Turning a
pair
will turn both its key and value - Turning a
struct
will turn anopen
struct into aclosed
struct and vice-versa (because of the special optionalpair
) - Turning a
list
orsequence
will turn each of their elements - Turning a
number
,boolean
ornull
value will yield the same value
T1:
T2:
T3:
T4:
T5:
T6:
T7:
T8:
T9:
T10: