Real World Haskell 4
These are the first exercises of chapter 4.
These are the first exercises of chapter 4.
Finally got it I think. This was bloody tricky.
There are several more questions in this book at the end of the chapter.
Real World Haskell chapter 3 is about recursive data types, and includes an example of creating a list-like data structure.
I’m used to the concept of short circuiting operators. For example, in this Python code “evaluated” is never printed as it is clear before then that the entire if branch must resolve to True.