Compute Even Digits — Fun with Ramda pt.1
Jul 22, 2017 · 1 min read
I had a free evening. So I gave myself a “challenge”. I wanted to program pretty difficult function that computes a number of even digits in the number.
So how did I end up to solve that quest?
Seriously though.
I just like how Ramda/functional style makes you create small reusable functions as you can see in the example above. For the pretty straightforward task, I’ve created 5 reusable functions excluding countEvenDigit itself.
Do you have similar examples? Or do you love Ramda as well? Please share in the comments :)
