Thanks John. Excellent recommendation here. I was never a fan of the big || concat construct but wasn’t aware of the FORMAT method. So much cleaner. I just tested and updated my gist. This is the main reason why I post this on Medium. To get more input from people who want to improve the algorithm.
I had a look at the minus34 algorithm before but never tested this in anger. It looks very good though and I already had a link to minus34 repo in my intro paragraph.