Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Hedge-union #1

Open
puffnfresh opened this issue Mar 9, 2014 · 3 comments
Open

Hedge-union #1

puffnfresh opened this issue Mar 9, 2014 · 3 comments

Comments

@puffnfresh
Copy link

If we assume coherent Ord instances for type-classes, we can provide a very fast algorithm for set union. See pages 19 and 20 of Implementing Sets Efficiently in a Functional Language.

Also implemented in the Haskell containers package.

@paf31
Copy link
Contributor

paf31 commented Mar 9, 2014

Sounds good. I'll probably come back to this later, but I definitely think we should try to implement it. I assume it works for Map as well as Set.

@puffnfresh
Copy link
Author

@paf31 yep, exactly. Would probably have been more sensible to link to the implementation for Map instead 🐴

@matthewleon
Copy link
Contributor

matthewleon commented Jun 1, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants