Implementing the bad approach
fun for(start, step, test, f) =
if test(start)
then (f(start);
for(step(start), step, test, f)
else ()
This function actually compiles; what's wrong with it?
Previous slide
Next slide
Back to first slide
View graphic version