Skip to content

Added Set collections (Sparse Set).#99

Merged
seyhajin merged 1 commit into
wonkey-coders:developfrom
denise-amiga:added_sets_collections
Apr 8, 2026
Merged

Added Set collections (Sparse Set).#99
seyhajin merged 1 commit into
wonkey-coders:developfrom
denise-amiga:added_sets_collections

Conversation

@denise-amiga
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread modules/std/std.wx
#Import "collections/deque"
'#Import "collections/ring"
#Import "collections/set"
'Import "collections/hashset"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see the "collections/hashset" file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, that's another, more generic implementation. It can store strings, floats, etc., but it's not finished yet. I'm testing it, and I've added it to std.wx and committed it. Once testing is complete, I'll add the implementation and uncomment it.
The sparse set is complete and functional, with documentation included; I just need to add some usage examples.

P.S. Since it's a sparse set, it only works for unsigned numbers, but it's the fastest implementation available. All operations are amortized (O(1)).

@seyhajin seyhajin merged commit 0d49aa0 into wonkey-coders:develop Apr 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants