Functions
Write a function EXPENSIVE that calculates the square of a number
Write a function FRUGAL that returns the same answer, but only calls EXPENSIVE when the given argument has not been seen before
Previous slide
Next slide
Back to first slide
View graphic version