I have a 3x4 array a:

  a

abcd

efgh

ijkl


I want a verb to create an array b that shifts a in 4 directions, and fills
with 'x', creating a 2x3x4 array


  f a

xabc

xefg

xijk


bcdx

fghx

jklx


xxxx

abcd

efgh


efgh

ijkl

xxxx

What is the most efficient J way to do this? The order of the 4 shifts are
not important.

Skip
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to