posted 10 years ago
func doesn't return an Int; it literally returns Int. It ignores the parameter and returns the same thing every time:
A function that returns an Int can be written as:
and a function that takes such a function as a parameter can be written as: