List comprehensions: Difference between revisions

-Java
(→‎{{header|Pop11}}: Removed as it is clearly not a list comprehension from the WP article.)
(-Java)
Line 1:
{{task|Basic language learning}}{{Omit From|Java}}
 
A [http[wp://en.wikipedia.org/wiki/List_comprehension |list comprehension]] is a special syntax in some programming languages to describe lists. It is similar to the way mathematicians describe sets, with a ''set comprehension'', hence the name.
 
Write a list comprehension that builds the list of all pythagoreanPythagorean triples with elements between 1 and n. If the language has multiple ways for expressing such a construct (for example, direct list comprehensions and generators), write one example for each.
 
=={{header|ALGOL 68}}==
Anonymous user