Foreword There's a 2.8 collection walk-through by Martin Odersky which should probably be your first reference. It has been supplemented as well with architectural notes, which will be of particular interest to those who want to design their own collections. The rest of this answer was written way before any such thing existed (in fact, before 2.8.0 itself was released). You can find a paper about
You could try something like this: trait Monad[+M[_]] { def unit[A](a: A): M[A] def bind[A, B](m: M[A])(f: A => M[B]): M[B] } // probably only works in Scala 2.8 implicit def monadicSyntax[M[_], A](m: M[A])(implicit tc: Monad[M]) = new { private val bind = tc.bind(m) _ def map[B](f: A => B) = bind(f compose tc.unit) def flatMap[B](f: A => M[B]) = bind(f) } implicit object MonadicOption extends Mon
I'm new to Scala and don't know Java. I want to create a jar file out of a simple Scala file. So I have my HelloWorld.scala, generate a HelloWorld.jar. Manifest.mf: Main-Class: HelloWorld In the console I run: fsc HelloWorld.scala jar -cvfm HelloWorld.jar Manifest.mf HelloWorld\$.class HelloWorld.class java -jar HelloWorld.jar => "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWor
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く