Heh, always thought Enum.reduce/2
repeats the first element when iterating. Thanks for ridding me of that dumb illusion!
Oops, I actually thought of addressing this but forgot. We can get away with it by using Decimal.reduce/1 because sometimes even identical float values – but represented differently when passed to Decimal.from_float
– yield false
when compared with ==
(which I agree should not be done).
Edited above to reflect your remarks.