Thanks for you post.
A few remarks if you allow me:
- you don't need to but two simple quotes for apostrophe
- you should not use the "return" keyword in functions and, even if you use curly braces, it's better to still use the "=" sign
- In Scala it's better to use List (if you simply want to traverse it) or Vector (if you want to access particular elements) than Array, because Array are mutable (so it's not safe to pass them in several threads) and also there are "invariant", which is very technical but basically it is bad :D