1# 2o: normalizing containers
5Tile generator. A `++jar` is a `++map` of `++list`.
10 ++ jar |*({a/$-(* *) b/$-(* *)} (map a (list b))) :: map of lists
16See also: `++ja`, `++by`, `++map`, `++list`
24 > =c (mo (limo [[%a a] [%b b] ~]))
26 {[p=%a q=[i=1 t=[i=2 t=~]]] [p=%b q=[i=3 t=[i=4 t=~]]]}
37mold generator. A `++jug` is a `++map` of `++set`s.
42 ++ jug |*({a/$-(* *) b/$-(* *)} (map a (set b))) :: map of sets
48See also: `++ju`, `++by`, `++map`, `++set`
50 > =a (sa (limo [1 2 ~]))
53 > =b (sa (limo [3 4 ~]))
56 > =c (mo (limo [[%a a] [%b b] ~]))
58 {[p=%a q={1 2}] [p=%b q={4 3}]}
61 > (~(put ju c) [%b 5])
62 {[p=%a q={1 2}] [p=%b q={5 4 3}]}
70mold generator. A `++map` is a treap of
77 ++ map |* {a/$-(* *) b/$-(* *)} :: associative tree
78 $@($~ {n/{p/a q/b} l/(map a b) r/(map a b)}) ::
89 > (molt `(list (pair * *))`[[a+1 b+2] ~])
98mold generator. An ordered [treap](http://en.wikipedia.org/wiki/Treap) of
104 ++ qeu |* a/$-(* *) :: queue
105 $@($~ {n/a l/(qeu a) r/(qeu a)}) ::
112 <1.qyo [* <1.sxx [a=<1.ebd [* <101.jzo 1.ypj %164>]> <101.jzo 1.ypj %164>]>]>
113 > (~(gas to *(qeu time)) [~2014.1.1 ~2014.1.2 ~])
114 {~2014.1.2 ~2014.1.1}
123mold generator. A `++set` is a treap with unique values.
128 ++ set |* a/$-(* *) :: set
129 $@($~ {n/a l/(set a) r/(set a)}) ::
139 > (~(put in (sa "abc")) %d)
141 > (~(put in (sa "abc")) %a)
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