Ad
  • Custom User Avatar

    foldRight / fold with a summing operation is identical to just using sum fun. This is distracting and misleading to any reader, also why do you care about folding from the right?
    Plus: folding with summing and an initial value of 0 is identical to reduce... :-)