[Haskell-beginners] Drawing Information from a function already defined

Felipe Almeida Lessa felipe.lessa at gmail.com
Wed Jul 20 17:48:18 CEST 2011


On Wed, Jul 20, 2011 at 10:45 AM, Clockwork PC <clockworkpc at gmail.com> wrote:
> 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.



More information about the Beginners mailing list