
20 Jul
2011
20 Jul
'11
11:48 a.m.
On Wed, Jul 20, 2011 at 10:45 AM, Clockwork PC
Defined my function:
Prelude> let rightTriangles = [ (a,b,c) | c <- [1..10], b <- [1..10], a <- [1..10], a^2 + b^2 == c^2 ]
Minor correction: rightTriangles is not a function, it is a value. Note that it takes no arguments. Cheers, =) -- Felipe.