更新代码

Int[]   为错误写法
This commit is contained in:
TheLittleBoy
2014-09-20 17:01:57 +08:00
parent 3b765742d8
commit 2790ffaaf1

View File

@ -289,7 +289,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