[Haskell-beginners] Re: multreplace

Patrick LeBoutillier patrick.leboutillier at gmail.com
Fri Jul 2 17:15:22 EDT 2010


> multRepl = foldl (uncurry . replace)

Actually I've been thinking about this and I can't quite figure out
how it works:

I understand the type of replace is

  replace :: (Eq a) => [a] -> [a] -> [a] -> [a]

but I can't figure out how the type of (uncurry . replace) becomes

  uncurry . replace :: (Eq a) => [a] -> ([a], [a]) -> [a]

?


Patrick

-- 
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada


More information about the Beginners mailing list