Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
reednj
on Oct 4, 2017
|
parent
|
context
|
favorite
| on:
Dictionary and Set Improvements in Swift 4.0
I wasn't aware of that syntax? It will just pass the arguments from the parent to the child in order?
jayrhynas
on Oct 5, 2017
|
next
[–]
As long as the signature of the function matches you can pass it in directly
slavapestov
on Oct 5, 2017
|
prev
[–]
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: