Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
fedvasu
· 13y ago · 0 comments
>> fold (
) x it should be fold (
) 1 x or foldr1 (
) x or foldl1 (
) x of course according to Guy Steele, fodl and foldr are considered harmful :)
Comments
[–]
kd0amg
13y ago
It's really cons lists that are harmful -- foldl and foldr are just ways to operate on them. GP's example would work fine with conc trees and a divide-and-conquer reduce instead.
[–]
bodhi
13y ago
I don't really understand, can you explain more? I should have written in my comment that I'm a Haskell beginner...