Create a new Tree from a node value and a possibly empty list of
child nodes. If the given forest is missing or empty a Leaf
will be returned, else a Branch.
At the curried key you will find a curried version that accepts two
argument lists: the first with the optional forest and the second with the
required value.
At the flipped key you will find a flipped curried version that accepts two
argument lists: the first with the required value and the second with the
optional forest.
At the tupled key you will find a tupled version that accepts the arguments
as a single tuple argument of value and optional forest.
Create a new
Treefrom a node value and a possibly empty list of child nodes. If the given forest is missing or empty a Leaf will be returned, else a Branch.At the
curriedkey you will find a curried version that accepts two argument lists: the first with the optional forest and the second with the required value.At the
flippedkey you will find a flipped curried version that accepts two argument lists: the first with the required value and the second with the optional forest.At the
tupledkey you will find a tupled version that accepts the arguments as a single tuple argument of value and optional forest.