Hi all, 
If I have 
x=: 0 10 20 30
y=: 5 6 7 12 13 21 22 23 28
How would I get to 
3 2 4 
A result showing the number of items of y between items of x
No item of y will equal an item of x. I'm currently using a loop to set
up intervals between items of x and then using 
+/(interval e. y) to get the number of matches on each iteration; this
is producing the result however having problem working out how to do it
more efficiently.
Thanks
John 


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

Reply via email to