diff --git a/3-99 Research/Haskell/Chapter 2 - Starting Out.md b/3-99 Research/Haskell/Chapter 2 - Starting Out.md index a5cabc236..249b92116 100644 --- a/3-99 Research/Haskell/Chapter 2 - Starting Out.md +++ b/3-99 Research/Haskell/Chapter 2 - Starting Out.md @@ -137,3 +137,10 @@ length' xs = sum [1 | _ <- xs] removeNonUppercase st = [ c | c <- st, c `elem` ['A'..'Z']] ``` +Finally, list comprehensions can be nested. So we can use a comprehension to extract a list from a set of lists, and then use another comprehension on that lsit itself. + +## Tuples +Tuples are somewhat confused with lists, but they are not exactly the same. + +Tuples are useful in specific cases. Namely, when an explicit number of elements and their types are known. Tuples are designated by parentheses '()' +