On Saturday 06 December 2008 22:07:51 Paul Johnson wrote:
So we could have
fromListWithZero :: Ord k = (a - b - b) - b - [(k, a)] - Map k b
fromListWithZero combiner zero pairs = ...
The first time a key is seen the combining function is called with
zero as its second argument. E.g.
I've just been looking at the Data.Map function fromListWith.
According to the docs, it has the type:
* fromListWith* :: Ord
http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-Ord.html#t%3AOrd
k = (a - a - a) - [(k, a)] - Map
On Sat, Dec 6, 2008 at 12:22 PM, Paul Johnson [EMAIL PROTECTED] wrote:
I've just been looking at the Data.Map function fromListWith. According
to the docs, it has the type:
* fromListWith* :: Ord
http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-Ord.html#t%3AOrd
k = (a - a -
Alexander Dunlap wrote:
On Sat, Dec 6, 2008 at 12:22 PM, Paul Johnson [EMAIL PROTECTED] wrote:
I've just been looking at the Data.Map function fromListWith. According
to the docs, it has the type:
* fromListWith* :: Ord