[EMAIL PROTECTED] wrote: > Quoting Dick Moores <[EMAIL PROTECTED]>: > > >>Why are list comprehensions called that? > > > Because that's what they're called in Haskell, I guess.. > > It's historical, based on the term "set comprehension" from mathematics, also > known as "set builder notation": > http://en.wikipedia.org/wiki/Set_comprehension
The Wikipedia page on "list comprehension" explicitly makes the connection to "set comprehension" and shows how the math notation and Haskell syntax resemble each other. http://en.wikipedia.org/wiki/List_comprehension Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor