Clever, but who is voting this as a best practice?! If I saw something this unreadable in a production codebase I'd be pissed.
Should use const instead of let for both.
Awful documentation on what happens when a ascii > 255...
Needs more tests and random test cases. Also seemed to be a bit easy for a 6kyu ranking.
This doesn't check that there is an opening parens or that the other characters are digits.
Oops, forgot to approve, doh! Done now.
Regarding functional programming - thanks for the tip; I try and use it as much as possible, but my brain is still adjusting to using it in some situations.
Thanks for adding the translations! And using a functional programming style is definitely something I'm working on :)
Just published another fun sports-based one :)
Fair point - tinkered with the image and fixed it for easier viewing :)
Thanks for flagging HerrWatt and thanks for fixing Giacomo!
Thanks GiacomoSorbi! Great to have the Python, Ruby and Crystal translations in there too :)
Glad you both enjoyed the connection to cycling - it's always more fun to connect kata to real world situations, hobbies, or challenges.
Approved! Thanks for writing!