2title = "2m: Container from Noun"
11Takes a null-terminated noun and produces a `list`.
15`a` is a null-terminated noun.
40`ly` is an alias for `le:nl`.
47Takes a null-terminated noun and produces a `map.`
51`a` is a noun composed of ordered pairs and terminated with `~`.
67 > (my [['a' 1] ['b' 2] ~])
68 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
73`my` is an alias for `my:nl`.
80Takes a null-terminated noun and produces a `set`.
84`a` is a null-terminated noun.
103 > (sy (ly [1 2 3 ~]))
107 [n='b' l={'a' 'c'} r={}]
112`sy` is an alias for `si:nl`.
117Noun-to-container operations
119Core whose arms contain functions that create various typed nouns from raw
134Takes a null-terminated noun and produces a `list`.
138`a` is a null-terminated noun.
150 |% +- $ ?:(*? ~ [i=(snag 0 a) t=$])
170Takes a null-terminated noun and produces a `map` of the same type of the `p`
175`a` is a noun composed of ordered pairs and terminated with `~`.
187 (~(gas by `(map _p.i.-.a _q.i.-.a)`~) a)
193 > (my:nl [['a' 1] ['b' 2] ~])
194 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
202Takes a null-terminated noun and produces a `set`.
206`a` is a null-terminated noun.
218 (~(gas in `(set _i.-.a)`~) a)
224 > (si:nl `(list [@t *])`[['a' 1] ['b' [2 3]] ~])
225 [n=['b' [2 3]] l={['a' 1]} r={}]
233Produces the element at the index `a` of null-terminated noun `b` and failing if
234the noun is null. Lists are 0-indexed.
240`b` is a null-terminated noun.
275Produces a list that is the concatenation of null-terminated nouns `a` and `b`.
279`a` is a null-terminated noun.
281`b` is a null-terminated noun.
291 |* [a=(list) b=(list)]
292 => .(a ^+((le a) a), b ^+((le b) b))
304 > (weld:nl b [8 9 ~])
305 [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