by shigemk2

当面は技術的なことしか書かない

scalaコマンドの-eオプションてなんだっけ

scala -e "println(List(1, 2, 3).dropRight(1))"
List(1, 2)
 -e <string>  execute <string> as if entered in the repl

特に理由はないです。ただ、REPLを起動しないでワンライナーしたいときに使うといいかもしれません。