3 ms·An exercise in Refactoring - Playing around with Monoids and Endomorphisms1 points by philippelh 14y agomercurial 14y agoColour me unconvinced: the imperative solution takes about as many lines and is easier to read.