What isn't possible with Finite Maps, and should be.

2001-11-08 Thread George Russell
Once again I find myself wanting something like the following function with finite maps: fmToListByRange :: Ord key = FiniteMap key elt - (key,key) - [(key,elt)] fmToListByRange map (k1,k2) is supposed to return all elements in the map with keys from k1 to k2 (inclusive). Although this

Re: What isn't possible with Finite Maps, and should be.

2001-11-08 Thread Max Kirillov
On Thu, Nov 08, 2001 at 11:48:44PM +0100, George Russell wrote: In any case it looks fairly simple to write. If only I were set up to be able to compile GHC I could write the necessary code myself . . . There's no need to rebuild the entire ghc system to hack the data package. You onky need