Return a function from a function
When you want a function to return a String, it's pretty obvious:
func whatIsForLunch() -> String {
return "Something delicious"
}
If you want to return a function, then the return type looks more like this: () -> Void.
The key bits that trip me ...
coderlyn.hashnode.dev1 min read