Higher order functions and function types in Swift

I was using the master-ish build that was on my laptop. I guess things have changed since then, or that master has diverged from 5.0 on this already.