The conversion routine 3!:4 only accepts scalar or vector arguments.

Would it be possible to extend it to behave in a similar way to #. and #:

The following is a model:
 ic =: 3!:4
 cnvt =: ( 3 : ' ($y)$_2[\ 1 ic ,y') :. ( 3 : '(}:$y)$_1 ic,y')

   $ cnvt i.20 30 40
20 30 40 2
   (-:  ]&.cnvt ) i.20 30 40
1

As presently implemented:
   1 ic i.20 30 40
|rank error: ic
|   1     ic i.20 30 40

Regards
David

PS: On a lesser point, why does the following produce a spelling error?
  test =.  (+):.(-)
but this doesn't
    pp=. (+) :.(-)

(j601/2006-11-17/17:05 : J64)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to