University of Washington • CSE583 • D. Notkin © 2000
47
Functionals vs. recursion
lThere are many more common functionals like these
lHow do you choose between using recursion and functionals?
lIn general, functionals are clearer
–Once you get over the learning curve
–For instance, it’s much easier to tell the structure of the resulting data