Loving Coding & Visual Design

swift

苹果官方的称法:Swift是一种全新的可以代替Cocoa和Cocoa Touch的脚本编程语言。

总体感觉。

Swift is a data-oriented coarse grained scripting language that supports dataset typing and mapping, dataset iteration, conditional
branching, and procedural composition.


“func hasAnyMatches(list: [Int], condition: Int -> Bool) -> Bool {
for item in list {
if condition(item) {
return true
}
}
return false
}
func lessThanTen(number: Int) -> Bool {
return number < 10
}
var numbers = [20, 19, 7, 12]
hasAnyMatches(numbers, lessThanTen)”

摘录来自: Apple Inc. “The Swift Programming Language”。 iBooks. https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewBook?id=881256329



下一页


最 近 文 章

  1. 复杂多维权限系统设计 - Mon, 30 Nov -0001 00:00:00 +0000
  2. Centos升级到6.5 final出现的PHP错误 - Mon, 30 Nov -0001 00:00:00 +0000
  3. Session object destruction failed错误 - Mon, 30 Nov -0001 00:00:00 +0000
  4. 关于自适应图片 - Mon, 30 Nov -0001 00:00:00 +0000
  5. FIS实战 - Mon, 30 Nov -0001 00:00:00 +0000
  6. Google starter kit前端开发工具 - Mon, 30 Nov -0001 00:00:00 +0000
  7. Smarty3 - Mon, 30 Nov -0001 00:00:00 +0000
  8. Grunt学习 - Mon, 30 Nov -0001 00:00:00 +0000
  9. Qunit测试用例 - Mon, 30 Nov -0001 00:00:00 +0000
  10. 前端开发环境搭建 - Mon, 30 Nov -0001 00:00:00 +0000