I would be interested in seeing an explicit solution to this... implicit
would be interesting, but I mainly want to see the explicit solution:

NB. find the index of a value in a list
NB. list indexOf value
NB. 9 4 6 indexOf 4   would yield 1
indexOf =: 4 : 0
indices =: i. # x
tally_map =: value = y
tally_map # indices
)

-- 
View this message in context: 
http://www.nabble.com/finding-the-index-of-an-element-in-a-list-tf4593778s24193.html#a13114248
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