2015-12-19から1日間の記事一覧
Activity Monitor で確認してみる。 CPU使用率が100%とかではない。 「Slow Animations」がONになっていた! ショートカットは command + [T]
for me in 3...4 { print(me) } 3 4 最後の数字は含む
2の4乗したい。 2 ^ 4 でもなく pow(2, 4) infix operator ^^ { } func ^^ (radix: Int, power: Int) -> Int { return Int(pow(Double(radix), Double(power))) } こうすれば 2 ^^ 4
let str1 = "9876" let index = 3 Int(str1[str1.startIndex.advancedBy(index)..