【发布时间】:2014-08-22 22:44:29
【问题描述】:
我正在通过教程学习 Swift 语言。
我正在使用此代码:
let hasPrefixAndSuffix: (String,String,String) -> Bool
{
var hasPrefix = $0.hasPrefix($1)
var hasSuffix = $0.hasSuffix($2)
return hasPrefix && hasSuffix
}
我有这个错误:
Anonymous closure argument not contained in a closure.
【问题讨论】:
标签: ios objective-c iphone swift