| Learn | Haskell - Lists - Processing lists |
|---|
| Processing lists To process lists, we can simply pattern match on the constructors of the list type: We can match more values by specifying a more elaborate pattern: Note that in the above example, we had to provide a more exhaustive pattern match to handle cases where an odd length list is given as an argument. The Haskell Prelude defines many built-ins for handling lists, like |
Read Article
https://develop.horje.com/learn/1434/reference