[Jprogramming] Get all pairs of integers

Aai bradypus at xs4all.nl
Fri Sep 16 14:15:24 HKT 2011


>
> 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.
    ;({.,.i.)&.>1+i.24
1 0
2 0
2 1
3 0
3 1
3 2
4 0
...

-- 
Met vriendelijke groet,
=@@i



More information about the Programming mailing list