[[Swift]] provides a shorthand syntax when passing a [[Closures in Swift|closure]] to a function. The syntax is the simpler when the function accepts a single function:
```swift
func stuff(f: () -> Void) {
// ...
}
// Regular syntax
stuff(by: { print("Hello!") })
// Trailing shorthand
stuff { print("Hello!") }
```
The syntax is a bit more complicated when there are multiple functions being accepted:
```swift
func complicatedStuff(first: () -> Void, second: () -> Void, third: () -> Void) {
// ...
}
complicatedStuff {
print("First!")
} second: {
print("Second!")
} third: {
print("Third!")
}
```