2014-01-27から1日間の記事一覧
vagrantでVMを一度に複数台立てる - $shibayu36->blog; Puppet Apply - Provisioning - Vagrant Documentation とりあえずやってみたかったのでやってみた。 boxは適当なものをaddする。 $ vagrant box add centos6.4.x86_64 https://github.com/2creatives/…
最大で22の要素を突っ込めるとか $ scala Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_51). Type in expressions to have them evaluated. Type :help for more information. scala> val t1 = ("Scala", 10) t1: (Stri…
連想配列、ハッシュマップとか呼ばれるやつで、他の言語と同じくキーと値の組からなるコレクションのこと。 $ scala Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_51). Type in expressions to have them evaluated. Ty…
だぶるころんで連結さす $ scala Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_51). Type in expressions to have them evaluated. Type :help for more information. scala> val list1 = Nil list1: scala.collection.…