My scrabble with friends implementation in scala

Saw this article on solving-scramble-with-friends-a-tale-of-three-data-structures/ on solving scrabble with friends in python.

So I thought why not I implement something similar in scala.

Here it is

A functional implementation of it. :)

The only quirk which I could not figure out is the reason why the python version is much faster than the complied version of scala.

Still trying to investigate Will post again once I have any finding.

One possible cause could be because of the JIT and slow startup time of the JVM