課程
/移動(dòng)開(kāi)發(fā)
/iOS
/玩兒轉(zhuǎn)Swift
代碼及錯(cuò)誤,如上圖所示。
2014-12-01
源自:玩兒轉(zhuǎn)Swift 8-2
正在回答
字符串使用這種與法比較,在使用>的時(shí)候,現(xiàn)在xcode似乎是有Bug的,具體討論可以參見(jiàn):http://stackoverflow.com/questions/26249784/implicit-returns-from-single-expression-closures-in-swift-playground
閉包內(nèi)使用{s1,s2 in return s1>s2} 是可以的。
或許6.2版本毀修復(fù)這個(gè)bug。。。
舉報(bào)
這套教程比任何的Swift中文教程深入,并且演示示例更豐富
1 回答Unary operator '++' cannot be applied to an operand of type '@lvalue Int'
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2014-12-01
字符串使用這種與法比較,在使用>的時(shí)候,現(xiàn)在xcode似乎是有Bug的,具體討論可以參見(jiàn):http://stackoverflow.com/questions/26249784/implicit-returns-from-single-expression-closures-in-swift-playground
閉包內(nèi)使用{s1,s2 in return s1>s2} 是可以的。
或許6.2版本毀修復(fù)這個(gè)bug。。。