#4313: Proposal: Add left, right and strict folds to Data.Set, Data.IntMap and
Data.IntSet to mimic Data.Map.
---------------------------------+------------------------------------------
    Reporter:  milan             |       Owner:                   
        Type:  task              |      Status:  new              
    Priority:  normal            |   Component:  libraries (other)
     Version:  6.12.3            |    Keywords:  containers       
    Testcase:                    |   Blockedby:  4278, 4280       
          Os:  Unknown/Multiple  |    Blocking:                   
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown     
---------------------------------+------------------------------------------

Comment(by milan):

 Replying to [comment:1 tibbe]:
 > I think we should have both strict left and right folds, not just strict
 left folds.

 I made the patch to mimic Data.Map.

 But I agree, we should add right strict fold.

 We could also add foldl, foldr, foldl' and foldr' to Data.Map and
 Data.!IntMap (currently only the *!WithKey are present), but I do not feel
 strongly either way.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4313#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to