After the meme has started with a version of unix in 14 lines of Ruby, and an improvement for 13 lines by writing it in Python, I present you the same version of unix, ported to scala.
Note that this is not serious code. Just wanted to reduce one line in another language, and felt Scala would offer me the pattern matching I was looking for. I will also give haskell a try, but I don’t think I can reduce the number of lines due to the IO monadic thing.
And I’m sure I can reduce the number of lines in either python or ruby without making it look ugly, but I’ll leave that for those you want to learn those languages.