Beginner help for understanding Haskell List Comprehension syntax

Here is the code I’m trying to understand.

let triple = [ (a,b,c) | c <- [1..10], a <- [1..c], b <- [1..a], a^2 + b^2 == c^2]

My question is in which order does Haskell evaluate each expression?


Source: syntax

Leave a Reply