Map over the tree node value.
The underlying type of the tree. For example, in a numeric tree it would be number.
number
New child node type and also result type of the given function.
The child node type, also called the carrier type.
the tree node to map over.
will be used as the mapping function.
A tree with the mapped value.
Map over the tree node value.
Type Param: A
The underlying type of the tree. For example, in a numeric tree it would be
number.Type Param: B
New child node type and also result type of the given function.
Type Param: C
The child node type, also called the carrier type.
Param: self
the tree node to map over.
Param: f
will be used as the mapping function.
Returns
A tree with the mapped value.