x {~^:n y  with boxed integer n seems to ignore the integer:

   x =: 1 2 3 4 4
   y =: 0
   u =: {~
   n =: <3

   x ({~)^:n y    NB. Seems to behave as if (n -: a:)
0 1 2 3 4
   x&({~)^:n y    NB. Equivalent from dictionary [1]
0 1 2

   x u^:n y       NB. Works OK if {~ is given a name
0 1 2
   x&u^:n y
0 1 2

   9!:14''  NB. Linux
j602/2008-03-03/16:45

[1] http://www.jsoftware.com/help/dictionary/d202n.htm


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

Reply via email to