Re: Is there a more-robust FiniteMap?

2002-02-25 Thread Johannes Waldmann
Using FiniteMap, I often run into robustness problems. same (?) here! a student of mine recently came across a similar problem (with a hand-made search tree): he expected to run listToFM $ [(0, ()) | i - [0..10]] in constant space, but instead it took all the stack and/or heap. we

Is there a more-robust FiniteMap?

2002-02-23 Thread Tom Moertel
Using FiniteMap, I often run into robustness problems. For example, consider the following program, which illustrates a common problem: module Main (main) where import FiniteMap main = print . last . fmToList . listToFM $ [(i,()) | i -