deal=: 4 : 0
 while. x>#z=. ~. (+:x) ?...@$ y do. end.
 x{.z
)


----- Original Message -----
From: Dan Bron <[email protected]>
Date: Monday, August 3, 2009 5:46
Subject: Re: [Jprogramming] Picking lottery tickets
To: J Programming <[email protected]>

> Henry Rich wrote:
> > You can model dyad ? as
> >    dyadquery =. (] , ({~ ?...@#)@-.)^:((i...@])`[`($...@0:))
> 
> I haven't read this thread yet, so forgive me if the following 
> is inappropriate or repetitive.
> 
> I might model dyad. ?  as:
> 
>    dQ. =:  {.  ?...@!@x: A. i.  
> 
> though this would probably be ridiculously slow.
> 
> -Dan
> 
> 
> Excuse typos; this message was composed on a phone.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to