Learning with the REPL
One of the useful features for learning Scala is its REPL (read-eval-print-loop) support. If you want to try something out in Scala, just run:
% scalaand then try it out at the prompt.
Each well-commented script below demonstrates a different facet of Scala.
If you're looking for the next step after playing with these examples, I recommend Programming in Scala:
Lead-author Martin Odersky is the creator of the Scala language, and he can clearly articulate the rationale for every language feature.