[GHC] #720: Map/Set range function

GHC trac at galois.com
Wed Apr 18 16:42:43 EDT 2007


#720: Map/Set range function
-----------------------------+----------------------------------------------
 Reporter:  jpbernardy       |          Owner:         
     Type:  feature request  |         Status:  new    
 Priority:  normal           |      Milestone:  6.8    
Component:  libraries/base   |        Version:  6.4.1  
 Severity:  normal           |     Resolution:         
 Keywords:  collections      |     Difficulty:  Unknown
 Testcase:  N/A              |   Architecture:  Unknown
       Os:  Unknown          |  
-----------------------------+----------------------------------------------
Comment (by dylan at dylex.net):

 More efficient versions of the related functions to find the values left
 or right of a key would be nice, too:
 {{{
 findMinBnd, findMaxBnd :: Ord k => k -> Map k v -> (k,v)
 findMinBnd low = findMin . snd . split low
 findMaxBnd high = findMax . fst . split high
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/720>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list