[Haskell] Re: RFC: DData in hierarchical libraries
simonmar at microsoft.com
Fri Mar 12 13:14:17 EST 2004
> Am Freitag, 12. März 2004 10:34 schrieb Simon Marlow:
> > [...]
> > Also, if the map argument comes first in 'insert map key
> x', then partial
> > application is more likely to be useful (you're more likely
> to be inserting
> > several things in the same map, rather than the same thing
> in several maps).
> If you look at one concrete function, you probably use
> insert, lookup etc.
> several times with the same map argument and not with the
> same key argument.
> But IMO, this isn't a place where partial application is
> typically used.
Don't want to drag this point out too much, but I just looked through the GHC sources and there are a few places where we do something like:
map (lookupFM fm) [ ... ]
More information about the Libraries