>>
<<
Ndx
Usr
Pri
Phr
Dic
Rel
Voc
!:
wd
Help
Dictionary
Itemize |
,: _ _ _ |
Laminate
|
,:y adds a leading unit axis to y ,
giving a result of shape 1,$y . Thus:
$ ,: 2 3 4
1 3
|
|
An atomic argument in x,:y is first reshaped to
the shape of the other (or to a list if the other argument
is also atomic); the results are then itemized and catenated,
as in (,:x),(,:y) .
The fit conjunction (,:!.f) provides
fill specified by the items of f .
|
s=: 3 [ v=: 2 3 4 [ m=: i. 3 3
(,:s); ($,: s); (,:v); ($,:v); ($,:m); ($,:^:4 v)
+-+-+-----+---+-----+---------+
|3|1|2 3 4|1 3|1 3 3|1 1 1 1 3|
+-+-+-----+---+-----+---------+
The following examples compare the dyadic cases of Append and Laminate:
a=: 'abcd' [ A=: 'ABCD' [ b=: 'abcdef'
(a,A) ; (a,:A) ; (a,:b) ; (m,m) ; (m ,: m)
+--------+----+------+-----+-----+
|abcdABCD|abcd|abcd |0 1 2|0 1 2|
| |ABCD|abcdef|3 4 5|3 4 5|
| | | |6 7 8|6 7 8|
| | | |0 1 2| |
| | | |3 4 5|0 1 2|
| | | |6 7 8|3 4 5|
| | | | |6 7 8|
+--------+----+------+-----+-----+
t=: i. 3 2 2
t ; (,/t) ; (,./t) ; (,:/t)
+-----+-----+-------------+-----+
| 0 1| 0 1|0 1 4 5 8 9| 0 1|
| 2 3| 2 3|2 3 6 7 10 11| 2 3|
| | 4 5| | |
| 4 5| 6 7| | 0 0|
| 6 7| 8 9| | 0 0|
| |10 11| | |
| 8 9| | | |
|10 11| | | 4 5|
| | | | 6 7|
| | | | |
| | | | 8 9|
| | | |10 11|
+-----+-----+-------------+-----+
>>
<<
Ndx
Usr
Pri
Phr
Dic
Rel
Voc
!:
wd
Help
Dictionary