NB. Dear J gurus --

   NB. I'm having trouble with  x m} y
   NB. Given a character array, it works:
   y =: '01234'
   y =: '7' 2} y
   y
01734

   NB. But with a numbers array, No:
   y =: 0 1 2 3 4
   y =: 7 2} y
|rank error
|   y=:    7 2} y
   y
0 1 2 3 4

   NB. How can I fix this?
   NB. Thanks in advance!
   NB. Peter A.

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

Reply via email to