metaperl.j wrote:

ozekha came up with a tighter explicit solution:

indexof =: 4 : '((x=y)#i.#y)'


If you meant all index of,
   9 4 6 4 I.@:= 4
1 3

translated to explicit solution,
   9 4 6 4 (4 : 'I.x=y') 4
1 3

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

Reply via email to