I just start learning Scala and I find it fascinating. I went through this course and it was nice.
Now I'm looking for some not-too-big exercises. Preferably with neat solutions so when I create my own I can learn :)
I just start learning Scala and I find it fascinating. I went through this course and it was nice.
Now I'm looking for some not-too-big exercises. Preferably with neat solutions so when I create my own I can learn :)
I found Ninety-Nine Scala Problems a while ago. They are mostly little programming exercises to get you used to writing code in Scala. Solutions are provided for each one.
I'll make a reference to part of my answer to another question (one of yours, in fact) -- after all, DRY rules!
If you don't have any project to use Scala at, and are presently with a writer's block, there's 99 Scala Problems, an adaptation of 99 Prolog Problems. Project Euler is also a good place to find problems. I have spent a few hours here and there with both.
You can find many answers to the 99 Scala Problems on the net. And even a few on Stack Overflow. :-)
I came across these two sets of exercises from Tony Morris a while back:
http://dibblego.wordpress.com/2008/07/29/revised-scala-exercises/
and
http://dibblego.wordpress.com/2008/09/10/20-intermediate-scala-exercises/
Google Code Jam is a good place to find small exercises if you have a couple of hours to spare. For something more involved, ICFP is not bad.
var
s, for
loops, and functions with side-effect.var
s and functions with side-effect.Here is a series of Scala exercises in the industry (vs academic) context: http://agileskills2.org/blog/category/scala/