2title = "2o: Normalizing Containers"
9Mold generator. A `jar` is a `map` of `list`.
14 ++ jar |*([a=mold b=mold] (map a (list b)))
28 > =c (my [[%a a] [%b b] ~])
30 [n=[p=%b q=[i=3 t=~[4]]] l={[p=%a q=[i=1 t=[i=2 t=~]]]} r={}]
41See also: [`ja`](@/docs/reference/library/2j.md), [`by`](@/docs/reference/library/2i.md), [`map`](@/docs/reference/library/2i.md), [`list`](@/docs/reference/library/2b.md)
46Mold generator. A `jug` is a `map` of `set`.
51 ++ jug |*([a=mold b=mold] (map a (set b)))
65 > =c (my [%a a] [%b b] ~])
67 [n=[p=%b q=[n=4 l={} r={3}]] l={[p=%a q=[n=2 l={1} r={}]]} r={}]
70 [n=4 l=~ r=[n=3 l={} r={}]]
72 > (~(put ju c) [%b 5])
73 [ n=[p=%b q=[n=4 l=[n=5 l={} r={}] r=[n=3 l={} r={}]]]
74 l=[n=[p=%a q=[n=2 l=[n=1 l={} r={}] r=~]] l={} r={}]
81See also: [`ja`](@/docs/reference/library/2j.md), [`by`](@/docs/reference/library/2i.md), [`set`](@/docs/reference/library/2h.md)
88Mold generator. A `map` is a [treap](https://en.wikipedia.org/wiki/Treap) of
95 ++ map |* [a=mold b=mold]
96 %+ cork (tree (pair a b))
97 |= c=(tree (pair a b)) ^+ c
108 > (molt `(list (pair * *))`[[a+1 b+2] ~])
109 [n=[p=[97 1] q=[98 2]] l={} r={}]
114See also: [`by`](@/docs/reference/library/2i.md)
121Mold generator. An ordered [treap](http://en.wikipedia.org/wiki/Treap) of
127 ++ qeu |*(a=mold (tree a))
138 { a/<1.vyv {* <112.lqf 224.nab 54.tyv 119.veb 31.ohr 1.jmk $143>}>
145 > (~(gas to *(qeu time)) [~2014.1.1 ~2014.1.2 ~])
146 [n=~2014.1.2 l={} r={~2014.1.1}]
151See also: [`qeu`](@/docs/reference/library/2k.md)
158Mold generator. A `qeu` is an ordered [treap](http://en.wikipedia.org/wiki/Treap) of
174 [n='b' l={'a' 'c'} r={}]
176 > (~(put in (sy "abc")) %d)
177 [n='b' l=[n='d' l={} r={'a' 'c'}] r=~]
179 > (~(put in (sy "abc")) %a)
180 [n='b' l=[n='c' l={'a'} r={}] r=~]
185See also: [`in`](@/docs/reference/library/2h.md)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list