List comprehensions: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 174: | Line 174: | ||
guard $ x^2 + y^2 == z^2 |
guard $ x^2 + y^2 == z^2 |
||
return (x,y,z)</lang> |
return (x,y,z)</lang> |
||
=={{header|Ioke}}== |
|||
<lang ioke>for( |
|||
x <- 1..20, |
|||
y <- x..20, |
|||
z <- y..20, |
|||
x * x + y * y == z * z, |
|||
[x, y, z] |
|||
)</lang> |
|||
=={{header|J}}== |
=={{header|J}}== |