Skip to content

About

Swift 2 筆記

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Swift 2 筆記

do-while 現在變成 repeat-while

var i = 0
repeat {
    i++
    print(i)
} while i < 10

for-in where 子句

let numbers = [20, 18, 39, 49, 68, 230, 499, 238, 239, 723, 332]

for number in numbers where number > 100 {
    print(number)
}

About

Swift 2 筆記

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors