ozekha came up with a tighter explicit solution:

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

-- 
View this message in context: 
http://www.nabble.com/finding-the-index-of-an-element-in-a-list-tf4593778s24193.html#a13114371
Sent from the J General mailing list archive at Nabble.com.

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

Reply via email to