2title = "2m: Container from Noun"
10Takes a null-terminated noun and produces a `list`.
14`a` is a null-terminated noun.
39`ly` is an alias for `le:nl`.
46Takes a null-terminated noun and produces a `map.`
50`a` is a noun composed of ordered pairs and terminated with `~`.
66 > (my [['a' 1] ['b' 2] ~])
67 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
72`my` is an alias for `my:nl`.
79Takes a null-terminated noun and produces a `set`.
83`a` is a null-terminated noun.
102 > (sy (ly [1 2 3 ~]))
106 [n='b' l={'a' 'c'} r={}]
111`sy` is an alias for `si:nl`.
116Noun-to-container operations
118Core whose arms contain functions that create various typed nouns from raw
133Takes a null-terminated noun and produces a `list`.
137`a` is a null-terminated noun.
149 |% +- $ ?:(*? ~ [i=(snag 0 a) t=$])
169Takes a null-terminated noun and produces a `map` of the same type of the `p`
174`a` is a noun composed of ordered pairs and terminated with `~`.
186 (~(gas by `(map _p.i.-.a _q.i.-.a)`~) a)
192 > (my:nl [['a' 1] ['b' 2] ~])
193 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
201Takes a null-terminated noun and produces a `set`.
205`a` is a null-terminated noun.
217 (~(gas in `(set _i.-.a)`~) a)
223 > (si:nl `(list [@t *])`[['a' 1] ['b' [2 3]] ~])
224 [n=['b' [2 3]] l={['a' 1]} r={}]
232Produces the element at the index `a` of null-terminated noun `b` and failing if
233the noun is null. Lists are 0-indexed.
239`b` is a null-terminated noun.
274Produces a list that is the concatenation of null-terminated nouns `a` and `b`.
278`a` is a null-terminated noun.
280`b` is a null-terminated noun.
290 |* [a=(list) b=(list)]
291 => .(a ^+((le a) a), b ^+((le b) b))
303 > (weld:nl b [8 9 ~])
304 [i=[2 3] t=[i=[1 4] t=~[8 9]]]
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