| Learn | Haskell - Lists - List basics |
|---|
| List basics The type constructor for lists in the Haskell Prelude is Lists in Haskell are homogeneous sequences (opens new window), which is to say that all elements must be of the same type. Unlike tuples, list type is not affected by length: Lists are constructed using two constructors (opens new window): We can define simple lists as follows: Note that |
Read Article
https://develop.horje.com/learn/1434/reference