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

Mathematician, Scala enthusiast, father of two.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store