On Apr 3, 2005 9:38 AM, Gracjan Polak <[EMAIL PROTECTED]> wrote:
insertList asclist map = union map (Data.Map.fromList asclist)
How about:
insertList :: (Ord a) => Map a b -> [(a, b)] -> Map a b
insertList = foldr (uncurry insert)
Is there any reason why foldr is better than foldl here?
/S
-- Gracjan
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
