## 函數聲明(Function Declarations)
保證短的函數定義在同一行中,并且包含左大括號:
~~~
func reticulateSplines(spline: [Double]) -> Bool {
// reticulate code goes here
}
~~~
在一個長的函數定義時,在適當的地方進行換行,同時在下一行中添加一個額外的縮進:
~~~
func reticulateSplines(spline: [Double], adjustmentFactor: Double,
translateConstant: Int, comment: String) -> Bool {
// reticulate code goes here
}
~~~