
20 Oct
2009
20 Oct
'09
2:46 a.m.
[snip] Not a hack, a solution. A consistent one. Look:
(`foldl` 0) (`-` 2)
Don't they look exactly the same? [snip]
These look the same too (and *are* consistent): (f a b) (+ a b) But it's not Haskell.. IMO conflating binary minus and unary minus is not consistent. Something I wonder from time to time if it would be a good thing or not is to allow a `f g` b to mean f g a b (so map (`f g` b) as would legal too). Cheers, Thu