on 492ae2f help sign in
48 lines 755 B history raw
1### `++welp`
3Perfect weld
5Concatenate two `++list`s `a` and `b` without losing their type information
6to homogenization.
8Accepts
9-------
11`a` is a list.
13`b` is a list.
15Produces
16--------
18A list.
20Source
21------
23 ++ welp :: perfect weld
24 =| {* *}
25 |%
26 +- $
27 ?~ +<-
28 +<-(. +<+)
29 +<-(+ $(+<- +<->))
30 --
33Examples
34--------
36 ~zod/try=> (welp "foo" "bar")
37 "foobar"
38 ~zod/arvo=/hoon/hoon> (welp ~[60 61 62] ~[%a %b %c])
39 [60 61 62 %a %b %c ~]
40 ~zod/arvo=/hoon/hoon>? (welp ~[60 61 62] ~[%a %b %c])
41 [60 61 62 %a %b %c ~]
42 [@ud @ud @ud %a %b %c %~]
43 ~zod/arvo=/hoon/hoon> (welp [sa+1 so+2 ~] si/3)
44 [[%sa 1] [%so 2] %si 3]
48***