News for hackers. Stuff that matters.
Re:Haskell People by vostok on Sunday October 01, 2017 @02:23PM (#15379087)
This is because the start argument defaults to 0. It doesn't make sense to add a list and 0.

The same thing does not work for a sequence of strings and an empty string.

    sum(["abc","def"], "")
Throws TypeError: sum() can't sum strings [use ''.join(seq) instead]

There are no comments on this comment yet.