alvinj / FunctionalProgrammingSimplified

Notes and projects for my book, “Functional Programming, Simplified"
18 stars 2 forks source link

page 90 (p74) def getOrElse[B >: A](default: => B): B = ??? #25

Open peteanning opened 5 years ago

peteanning commented 5 years ago

This is an example of pass-by-name and you don't cover this until page 255(p239) I worked it out eventually when I got there it suddenly made sense.