Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wasn't aware of that syntax? It will just pass the arguments from the parent to the child in order?


As long as the signature of the function matches you can pass it in directly


Functions are values in Swift. Closure literal syntax is just a shorthand where you don’t have to name the function first.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: