From: stolz Date: Thu, 7 Nov 2002 10:41:59 +0000 (+0000) Subject: [project @ 2002-11-07 10:41:59 by stolz] X-Git-Tag: nhc98-1-18-release~800 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=81cc4bf601dc13eae65f7e27a6d01298040acbdd;p=haskell-directory.git [project @ 2002-11-07 10:41:59 by stolz] - Explicitely document order of parameters in addToFM_C. --- diff --git a/Data/FiniteMap.hs b/Data/FiniteMap.hs index 1a08cae..2f1bde7 100644 --- a/Data/FiniteMap.hs +++ b/Data/FiniteMap.hs @@ -142,7 +142,8 @@ addListToFM :: (Ord key OUTPUTABLE_key) => FiniteMap key elt -> [(key,elt)] -> F -- | Adds an element to a 'FiniteMap'. If there is already an element -- with the same key, then the specified combination function is used --- to calculate the new value. +-- to calculate the new value. The already present element is passed as +-- the first argument and the new element to add as second. addToFM_C :: (Ord key OUTPUTABLE_key) => (elt -> elt -> elt) -> FiniteMap key elt -> key -> elt -> FiniteMap key elt