3 title/'2m: Container from Noun'
9# 2m: container from noun
15Takes a null-terminated noun and produces a `list`.
19`a` is a null-terminated noun.
44`ly` is an alias for `le:nl`.
51Takes a null-terminated noun and produces a `map.`
55`a` is a noun composed of ordered pairs and terminated with `~`.
71 > (my [['a' 1] ['b' 2] ~])
72 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
77`my` is an alias for `my:nl`.
84Takes a null-terminated noun and produces a `set`.
88`a` is a null-terminated noun.
107 > (sy (ly [1 2 3 ~]))
111 [n='b' l={'a' 'c'} r={}]
116`sy` is an alias for `si:nl`.
121Noun-to-container operations
123Core whose arms contain functions that create various typed nouns from raw
138Takes a null-terminated noun and produces a `list`.
142`a` is a null-terminated noun.
154 |% +- $ ?:(*? ~ [i=(snag 0 a) t=$])
174Takes a null-terminated noun and produces a `map` of the same type of the `p`
179`a` is a noun composed of ordered pairs and terminated with `~`.
191 (~(gas by `(map _p.i.-.a _q.i.-.a)`~) a)
197 > (my:nl [['a' 1] ['b' 2] ~])
198 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
206Takes a null-terminated noun and produces a `set`.
210`a` is a null-terminated noun.
222 (~(gas in `(set _i.-.a)`~) a)
228 > (si:nl `(list [@t *])`[['a' 1] ['b' [2 3]] ~])
229 [n=['b' [2 3]] l={['a' 1]} r={}]
237Produces the element at the index `a` of null-terminated noun `b` and failing if
238the noun is null. Lists are 0-indexed.
244`b` is a null-terminated noun.
279Produces a list that is the concatenation of null-terminated nouns `a` and `b`.
283`a` is a null-terminated noun.
285`b` is a null-terminated noun.
295 |* [a=(list) b=(list)]
296 => .(a ^+((le a) a), b ^+((le b) b))
308 > (weld:nl b [8 9 ~])
309 [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