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`.
48Takes a null-terminated noun and produces a `map.`
52`a` is a noun composed of ordered pairs and terminated with `~`.
68 > (my [['a' 1] ['b' 2] ~])
69 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
74`my` is an alias for `my:nl`.
82Takes a null-terminated noun and produces a `set`.
86`a` is a null-terminated noun.
105 > (sy (ly [1 2 3 ~]))
109 [n='b' l={'a' 'c'} r={}]
114`sy` is an alias for `si:nl`.
120Noun-to-container operations
122Core 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=$])
175Takes a null-terminated noun and produces a `map` of the same type of the `p`
180`a` is a noun composed of ordered pairs and terminated with `~`.
192 (~(gas by `(map _p.i.-.a _q.i.-.a)`~) a)
198 > (my:nl [['a' 1] ['b' 2] ~])
199 [n=[p='b' q=2] l={[p='a' q=1]} r={}]
208Takes a null-terminated noun and produces a `set`.
212`a` is a null-terminated noun.
224 (~(gas in `(set _i.-.a)`~) a)
230 > (si:nl `(list [@t *])`[['a' 1] ['b' [2 3]] ~])
231 [n=['b' [2 3]] l={['a' 1]} r={}]
240Produces the element at the index `a` of null-terminated noun `b` and failing if
241the noun is null. Lists are 0-indexed.
247`b` is a null-terminated noun.
283Produces a list that is the concatenation of null-terminated nouns `a` and `b`.
287`a` is a null-terminated noun.
289`b` is a null-terminated noun.
299 |* [a=(list) b=(list)]
300 => .(a ^+((le a) a), b ^+((le b) b))
312 > (weld:nl b [8 9 ~])
313 [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