Back to Fpinscala

02.Hint

answerkey/laziness/02.hint.md

latest222 B
Original Source

Many LazyList functions can start by pattern matching on the LazyList and considering what to do in each of the two cases. This particular function needs to first consider whether it needs to look at the stream at all.