scala
List 操作の代表的なメソッドが紹介されているが、remove と sort は Scala 2.10.0 だと無い。代わりに filterNot と sortWith を使う。https://github.com/yewton/scala_ex/blob/master/03_next_steps_in_scala/list_functions.scala
http://yusukezzz.net/blog/archives/2149を参考に、ホイホイと最新の JDK とか入れていざコンパイルしてみると以下の様なエラーが発生するかもしれない。 [trace] Stack trace suppressed: run last HelloScala/android:proguard for the full output. [err…
Mac で UTF-8 で Scala のコードを書いてて、日本語を書いちゃうと、 java.nio.charset.UnmappableCharacterException が発生したりします。utf 8 - Printing Unicode from Scala interpreter - Stack Overflowにあるように、JAVA_OPTS="-Dfile.encoding=UTF…
Scala 2.10.0 では、暗黙の型変換を何もせずに定義すると以下の warning が発生します。 warning: implicit conversion method intToRational should be enabled by making the implicit value language.implicitConversions visible. This can be achieved …
p.088 Application が Appliation となっている部分がある extends Application は 2.9.0 から @deprecated use App instead http://www.scala-lang.org/api/current/index.html#scala.Application