
15 Feb
2008
15 Feb
'08
8:11 a.m.
On 15/02/2008, Johannes Waldmann
See - the proposed function is in the "wrong" module; it uses a concrete data type (List) which normally represents an abstract Sequence type but here some abstract data type (Bag) is intended. (my "favourite Haskell code smell": list obsession :-)
Why then, are there so many of these functions?
Lists are our loops. It has nothing to do with an aversion to using other sequence types. Lists reify linear recursion directly. So the real question I suppose is why loops are so popular. - Cale