Anonymous user
List comprehensions: Difference between revisions
m
→{{header|Erlang}}: optimized, made more idiomatic in syntax.
Underscore (talk | contribs) (Omit Perl.) |
m (→{{header|Erlang}}: optimized, made more idiomatic in syntax.) |
||
Line 82:
pythag(N) ->
[ {A,B,C} || A <- lists:seq(1,N),
A+B+C =<
A*A+B
=={{header|Haskell}}==
|