Map
Symbol: :
Translated to JavaScript object.
#
ConstructionTakes key-field pairs as parameters.
Example:
You can use already declared names as key-field pair:
#
DeconstructionYou can put a map to first argument of abstraction operator =
. In this case it deconstructs the value to it's structure and create named abstractions from its elements.
Example:
You can rename the field while deconstructing:
You can deconstruct netsted maps: