Thanks Ric I can understand x I. y Not exactly clear on how the #/.~ is working on it For starters are the names of the primitives as used count oblique reflexive?
>Ric Sherlock Wrote: > >How about >x=: 0 10 20 30 >y=: 5 6 7 12 13 21 22 23 28 > #/.~ x I. y >3 2 4 >>John Saunders Wrote: >> 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
