Topic: APLX Help : Help on APL language : APL Primitives : ⌿ 1st axis compress
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

1st axis Compress, Replicate


/ applies by default to the last dimension, whilst the similar operator, ⌿, applies by default to the first dimension.

            TABLE←2 3 ⍴⍳6
            2/TABLE                  (Replicate on last dimension)
       1 1 2 2 3 3
       4 4 5 5 6 6
             2⌿TABLE                 (Replicate on first dimension. Same as
       1 2 3                          2/[1]TABLE)
       1 2 3
       4 5 6
       4 5 6

Topic: APLX Help : Help on APL language : APL Primitives : ⌿ 1st axis compress
[ Previous | Next | Contents | Index | APL Home ]