ハイパーニートプログラマーへの道

頑張ったり頑張らなかったり

2014-06-10から1日間の記事一覧

.swiftファイルの実行

今までコマンドラインからxcrun swiftでREPL立ち上げて使っていたので、swiftだけで実行できるように ここ(のコメント)を参考に Swiftのインタプリタモードが楽しい - Qiita $ sudo ln -s "/Applications//Xcode6-Beta.app/Contents/Developer/Toolchains/…

【Swift】いろいろやってみる2

Dictionaryを空っぽにする 前回の記事の続きで 119> scores = [:] 120> println(scores) [:] 121> scores.count $R38: Int = 0 122> println("The dictionary of scores contains \(scores.count) items.") The dictionary of scores contains 0 items. Dict…