ScalaのListのデータをランダムにソートする
[scala]
import scala.utl.Random
val a = List(1,2,3)
val b = List(4,5,6)
val c = a ::: b
val rand = new Random
c.sortBy{_ => rand.nextInt(c.size)}.map(println)
[/scala]
Liftを使うかPlay frameworkを使うか、というところで、悩んでいる ...
Rubyにはrvmがある。 Scalaにはsvmがある。 ということで、svmを ...
abstractなclass とか trait に、型指定のないtype ali ...
Controllerの中などで、 Play.current.path.getPa ...
Rubyでは .each_with_index |value, index| p ...