Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Learning Haskell

Name: Anonymous 2011-08-21 20:24

In this list comprehension:


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


what is the behavior of "1..c" and "1..b"?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List