on ac8530f help sign in
41 lines 654 B history raw
1### `++zing`
3Cons
5Turns a `++list` of lists into a single list by promoting the elements of
6each sublist into the higher.
8Accepts
9-------
11A list of lists.
13Produces
14--------
16A list.
18Source
19------
21 ++ zing :: promote
22 =| *
23 |%
24 +- $
25 ?~ +<
26 +<
27 (welp +<- $(+< +<+))
28 --
32Examples
33--------
35 ~zod/try=> (zing (limo [(limo ['a' 'b' 'c' ~]) (limo ['e' 'f' 'g' ~]) (limo ['h' 'i' 'j' ~]) ~]))
36 ~['a' 'b' 'c' 'e' 'f' 'g' 'h' 'i' 'j']
37 ~zod/try=> (zing (limo [(limo [1 'a' 2 'b' ~]) (limo [3 'c' 4 'd' ~]) ~]))
38 ~[1 97 2 98 3 99 4 100]
41***