Four chapters into Learn you a Haskell for Great Good I decided to tackle a codewars problem in Haskell
The problem was to take an array and a number, and return the array ommitting occurences of any integer in excess of the given number. So like func ([1, 1, 2, 3], 1) -> [1, 2, 3]. Great, so at first I was like, let's do this!
...
... and drew a complete blank. So I did it in JavaScript.