Merge pull request #318 from TheLittleBoy/patch-5

更新代码
This commit is contained in:
梁杰
2014-09-26 11:13:10 +08:00

View File

@ -305,7 +305,7 @@ increment(7)
函数也可以当做参数传入另一个函数。
```swift
func hasAnyMatches(list: Int[], condition: Int -> Bool) -> Bool {
func hasAnyMatches(list: [Int], condition: Int -> Bool) -> Bool {
for item in list {
if condition(item) {
return true