List comprehensions: Difference between revisions
no edit summary
(→{{header|Haskell}}: Add type signatures) |
No edit summary |
||
Line 1,615:
13 members listed.
</pre>
=={{header|Ring}}==
<lang ring>
for x = 1 to 20
for y = x to 20
for z = y to 20
if pow(x,2) + pow(y,2) = pow(z,2)
see "[" + x + "," + y + "," + z + "]" + nl ok
next
next
next
</lang>
=={{header|Ruby}}==
|