List comprehensions: Difference between revisions

Content added Content deleted
m (→‎{{header|CoffeeScript}}: 2*syntaxhighlight -> 1 plus comment)
m (→‎{{header|11l}}: removed syntaxhighlight)
Line 21: Line 21:
{{trans|Python}}
{{trans|Python}}


<syntaxhighlight lang="11l">print(cart_product(1..20, 1..20, 1..20).filter((x, y, z) -> x ^ 2 + y ^ 2 == z ^ 2 & y C x .. z))</syntaxhighlight>
print(cart_product(1..20, 1..20, 1..20).filter((x, y, z) -> x ^ 2 + y ^ 2 == z ^ 2 & y C x .. z))


{{out}}
{{out}}