See also http://www.jsoftware.com/jwiki/Essays/Key



----- Original Message -----
From: "Sherlock, Ric" <[EMAIL PROTECTED]>
Date: Monday, April 16, 2007 11:49 pm
Subject: RE: [Jprogramming] RE: Programming Digest, Vol 19, Issue 57

> Yes I found it under Phrases and it took me a while to deconstruct 
> too.
> The primitives are Count, Key and Reflexive
> The Dictionary page for Key is most illuminating.
> 
> Another option would be  
>   +/"1 = x I. y
> 3 2 4
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Saunders, John (TQEH)
> > Sent: Tuesday, 17 April 2007 18:35
> > To: [email protected]
> > Subject: [Jprogramming] RE: Programming Digest, Vol 19, Issue 57
> > 
> > 
> > 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

Reply via email to