|
Code |
Result |
|
1 2.0 =>x;3 4 5
,=>x %**$;
1 2.0 ,=> (3 4 5) %**$; |
Num[R3C5:F]1 2 3 4 5
Num[R2C5:F]3 4 5 1 2 |
|
'abc' =>x;'xyz'
,=>x %**$;
'abc' ,=> ('xyz') %**$; |
String[R1C3:C]abcxyz
String[R2C6:C]xyzabc |
|
'Amts:'(_1 3 2 5 3
>>> =>amts)$;
'Cells:'(1 2 3=>cells)$;
'<1>'(amts #<> cells)$;
'<2>'(amts @< #<> cells)$;
'<3>'(amts @> #<> cells)$; |
Amts:_1 2 3 3 5
Cells:1 2 3
<1>0 1 3 1
<2>0 1 3 1
<3>1 1 2 1 |
|
'Idx: '(0 1 1 2 2 3 3 3
5 =>idx)$;
'Amts:'(5 4 6 3 3 2 5 4 8 =>amts)$;
'Cells:'(1 2 3=>cells)$;
'<1>'(idx amts #<> cells)$;
'<2>'(idx amts @< #<> cells)$;
'<3>'(idx amts @> #<> cells)$; |
Idx: 0 1 1 2 2 3 3 3 5
Amts:5 4 6 3 3 2 5 4 8
Cells:1 2 3
<1>10 6 19 5
<2>10 6 19 5
<3>15 6 11 8 |
|
1 3 5 =>x; 2 4 1
=>y; 0..6=>ix;
x y #@` ix |
1 2 3 4 2.5 1 _0.5 |
|
1 2 4 =>s; 2 3
6=>e; 2 4 3 =>v;
'Left:' (s e v #@` (0..7))$;
'Right:' (s e v @> #@` (0..7))$; |
Left:2 2 4 3.5 3 3 3 3
Right:2 2 2 4 3.5 3 3 3 |