2title = "2o: Normalizing Containers"
8Mold generator. A `jar` is a `map` of `list`.
13 ++ jar |*([a=mold b=mold] (map a (list b)))
27 > =c (my [[%a a] [%b b] ~])
29 [n=[p=%b q=[i=3 t=~[4]]] l={[p=%a q=[i=1 t=[i=2 t=~]]]} r={}]
40See 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)
45Mold generator. A `jug` is a `map` of `set`.
50 ++ jug |*([a=mold b=mold] (map a (set b)))
64 > =c (my [%a a] [%b b] ~])
66 [n=[p=%b q=[n=4 l={} r={3}]] l={[p=%a q=[n=2 l={1} r={}]]} r={}]
69 [n=4 l=~ r=[n=3 l={} r={}]]
71 > (~(put ju c) [%b 5])
72 [ n=[p=%b q=[n=4 l=[n=5 l={} r={}] r=[n=3 l={} r={}]]]
73 l=[n=[p=%a q=[n=2 l=[n=1 l={} r={}] r=~]] l={} r={}]
80See also: [`ja`](@/docs/reference/library/2j.md), [`by`](@/docs/reference/library/2i.md), [`set`](@/docs/reference/library/2h.md)
87Mold generator. A `map` is a [treap](https://en.wikipedia.org/wiki/Treap) of
94 ++ map |* [a=mold b=mold]
95 %+ cork (tree (pair a b))
96 |= c=(tree (pair a b)) ^+ c
107 > (molt `(list (pair * *))`[[a+1 b+2] ~])
108 [n=[p=[97 1] q=[98 2]] l={} r={}]
113See also: [`by`](@/docs/reference/library/2i.md)
120Mold generator. An ordered [treap](http://en.wikipedia.org/wiki/Treap) of
126 ++ qeu |*(a=mold (tree a))
137 { a/<1.vyv {* <112.lqf 224.nab 54.tyv 119.veb 31.ohr 1.jmk $143>}>
144 > (~(gas to *(qeu time)) [~2014.1.1 ~2014.1.2 ~])
145 [n=~2014.1.2 l={} r={~2014.1.1}]
150See also: [`qeu`](@/docs/reference/library/2k.md)
157Mold generator. A `qeu` is an ordered [treap](http://en.wikipedia.org/wiki/Treap) of
173 [n='b' l={'a' 'c'} r={}]
175 > (~(put in (sy "abc")) %d)
176 [n='b' l=[n='d' l={} r={'a' 'c'}] r=~]
178 > (~(put in (sy "abc")) %a)
179 [n='b' l=[n='c' l={'a'} r={}] r=~]
184See 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