@@ -2,5 +2,95 @@
2navhome: /docs/
2navhome: /docs/
6# 2l: container from container
5# 2l: container from container
11+Produces a map from a list `a`.
25+ (molt `(list [p=_-<.a q=_->.a])`a)
29+ > (malt [['ok' 'no'] ['a' 'b'] ['x' 'y'] ~])
30+ [n=[p='x' q='y'] l={[p='a' q='b'] [p='ok' q='no']} r={}]
32+ > (malt ~[[1 2 3] [4 5 6] [7 8 9]])
33+ [n=[p=1 q=[2 3]] l={[p=4 q=[5 6]] [p=7 q=[8 9]]} r={}]
40+Produces a map from a list of pairs `a`.
44+`a` is a list of pairs.
54+ (~(gas by `(tree [p=_p.i.-.a q=_q.i.-.a})`~) a)
58+ > =a `(list (pair))`[[1 2] [4 3] [11 0] ~]
60+ > ~[[p=1 q=2] [p=4 q=3] [p=11 q=0]]
63+ [n=[p=11 q=0] l={[p=4 q=3] [p=1 q=2]} r={}]
67+Only used internally as a helper to `malt`.
74+Produces a set from a list `a`.
88+ =+ b=*(tree _?>(?=(^ a) i.a))
93+ > (silt `(list @t)`['c' 'hoon' 'javascript' 'python' ~])
94+ [n='javascript' l={} r={'python' 'hoon' 'c'}]