Back to Fpinscala

29.Hint

answerkey/datastructures/29.hint.md

latest194 B
Original Source

The signature is def fold[B](f: A => B, g: (B,B) => B): B, defined as a method on Tree. See if you can define this function, then reimplement the functions you've already written for Tree.