Raze | ; _ _ _ | Link |
;y assembles along a leading axis the opened elements
of the ravel of y .
|
x;y is (<x),y if y is boxed,
and (<x),<y if y is open.
|
]bv=: 1 2 3;4 5 6;7 8 9 +-----+-----+-----+ |1 2 3|4 5 6|7 8 9| +-----+-----+-----+ ;bv 1 2 3 4 5 6 7 8 9 ]m=: >bv 1 2 3 4 5 6 7 8 9 ;/ m +-----+-----+-----+ |1 2 3|4 5 6|7 8 9| +-----+-----+-----+ (;/1 2 3 4 5) ,&< (;/i. 3 4) +-----------+---------------------------+ |+-+-+-+-+-+|+-------+-------+---------+| ||1|2|3|4|5|||0 1 2 3|4 5 6 7|8 9 10 11|| |+-+-+-+-+-+|+-------+-------+---------+| +-----------+---------------------------+ ]txt=: '3 %: 4 ^. 5' 3 %: 4 ^. 5 ]s=: ;: txt Word formation +-+--+-+--+-+ |3|%:|4|^.|5| +-+--+-+--+-+ ;s 3%:4^.5 (boxifopen=: <^:(< -: {:@;~)) 3 4 +---+ |3 4| +---+ (<3 4) = boxifopen <3 4 1