-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding fromFunction to Data.IntMap #96
Comments
To really get the efficiency right, we'd have to make the |
I am not sure this is worth it, i.e., do people construct Also it is not obvious what is the right type of
It is a shame we cannot easily use the Also note that if we do this, maybe we should create an equivalent function in If you want to pursue this, please propose to libraries@haskell.org. |
We would need to explain, in the documentation, the rather substantial difference in performance characteristics. We also need to do this for |
I have since decided the required laziness is probably going to be way too much trouble to manage and also likely detrimental to performance. |
I believe
Data.IntMap
should be able to supportwhere the first two arguments bound the domain. Alternatively, there might be some fancy way to use a domain made up of multiple ranges.
The text was updated successfully, but these errors were encountered: