;({.<@,.}.)\.i.24

R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:programming-
> [email protected]] Namens David Vaughan
> Verzonden: donderdag 15 september 2011 22:18
> Aan: Programming forum
> Onderwerp: [Jprogramming] Get all pairs of integers
> 
> Hi,
> 
> I have a dyadic verb I wish to apply to x and y where x>y and 0<x<24,
0<=y<x.
> 
> I want to be able to apply the verb to every single possible pairing of x
and y
> that is legal (i.e. where x>y).
> 
> If it were C I would just do:
> 
> for(x=1;x<24;x++)
> for(y=0;y<x;y++)
> {
>       // do verb on x and y
> }
> 
> So I need an equivalent to that basically, in J.
> 
> Any help would be appreciated.
> Thanks.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to