13A container arm for `++jar` operation arms. A `++jar` is a `++map` of
14`++list`s. The contained arms inherit the sample jar.
18 > ~(. ja (mo (limo a/"ho" b/"he" ~)))
19 <2.dgz [nlr([p={%a %b} q=""]) <414.fvk 101.jzo 1.ypj %164>]>
21------------------------------------------------------------------------
27 +- get :: gets list by key
33Produces a list retrieved from jar `a` using the key `b`.
37`b` is a key of the same type as the keys in `a`.
39 > =l (mo `(list ,[@t (list ,@)])`[['a' `(list ,@)`[1 2 3 ~]] ['b' `(list ,@)`[4 5 6 ~]] ~])
41 {[p='a' q=~[1 2 3]] [p='b' q=~[4 5 6]]}
49------------------------------------------------------------------------
55 +- add :: adds key-list pair
60Produces jar `a` with value `c` prepended to the list located at key
65`b` is a key of the same type as the keys in `a`.
67`c` is a value of the same type as the values in `a`.
69 > =l (mo `(list ,[@t (list ,@)])`[['a' `(list ,@)`[1 2 3 ~]] ['b' `(list ,@)`[4 5 6 ~]] ~])
71 {[p='a' q=~[1 2 3]] [p='b' q=~[4 5 6]]}
73 {[p='a' q=~[1 2 3]] [p='b' q=~[7 4 5 6]]}
74 > (~(add ja l) 'a' 100)
75 {[p='a' q=~[100 1 2 3]] [p='b' q=~[4 5 6]]}
77 {[p='a' q=~[1 2 3]] [p='c' q=~[7]] [p='b' q=~[4 5 6]]}
78 > (~(add ja l) 'c' `(list ,@)`[7 8 9 ~])
90Container arm for jug operation arms. A `++jug` is a `++map` of
91`++sets`. The contained arms inherit its sample jug, `a`.
95 > ~(. ju (mo (limo a/(sa "ho") b/(sa "he") ~)))
96 <2.dgz [nlr([p={%a %b} q={nlr(^$1{@tD $1}) nlr(^$3{@tD $3})}]) <414.fvk 101.jzo 1.ypj %164>]>
102 +- del :: del key-set pair
113Produces jug `a` with value `c` removed from set located at key `b`.
117`b` is a key of the same type as the keys in `a`.
119`c` is the value of the same type of the keys in `a` that is to be
123 {[p='a' q={1 3 2}] [p='b' q={5 4 6}]}
124 > (~(del ju s) 'a' 1)
125 {[p='a' q={3 2}] [p='b' q={5 4 6}]}
126 > (~(del ju s) 'c' 7)
127 {[p='a' q={1 3 2}] [p='b' q={5 4 6}]}
129------------------------------------------------------------------------
135 +- get :: gets set by key
141Produces a set retrieved from jar `a` using key `b`.
145`b` is a key of the same type as the keys in `a`.
148 {[p='a' q={1 3 2}] [p='b' q={5 4 6}]}
156------------------------------------------------------------------------
162 +- has :: existence check
165 (~(has in (get b)) c)
169Computes whether a value `c` exists within the set located at key `b`
170with jar `a`. Produces a loobean.
174`b` is a key as a noun.
176`c` is a value as a noun.
179 {[p='a' q={1 3 2}] [p='b' q={5 4 6}]}
180 > (~(has ju s) 'a' 3)
182 > (~(has ju s) 'b' 6)
184 > (~(has ju s) 'a' 7)
186 > (~(has jus s) 'c' 7)
190 > (~(has ju s) 'c' 7)
193------------------------------------------------------------------------
199 +- put :: add key-set pair
203 (~(put by a) b (~(put in d) c))
205Produces jar `a` with `c` added to the set value located at key `b`.
209`b` is a key as a noun.
214 {[p='a' q={1 3 2}] [p='b' q={5 4 6}]}
215 > (~(put ju s) 'a' 7)
216 {[p='a' q={7 1 3 2}] [p='b' q={5 4 6}]}
217 > (~(put ju s) 'a' 1)
218 {[p='a' q={1 3 2}] [p='b' q={5 4 6}]}
219 > (~(put ju s) 'c' 7)
220 {[p='a' q={1 3 2}] [p='c' q={7}] [p='b' q={5 4 6}]}
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