From the README:

Zig currently does not have a built-in, general purpose Set data structure at this point in time. Until it does, try this!

Rationale: It may be common knowledge that a dictionary or map or hashset can be used as a set where the value is basically void. While this is true, there’s a lot to think about in terms of supporting all the common set operations in a performant and correct way and there’s no good reason why a common module for this can’t exist. After studying the Zig stdlib, I’m hoping this implementation can fill that gap and provide some value.

No comments yet!

Zig Programming Language

!zig@lemm.ee

Create post

A lemm.ee community for Zig!

Community stats

  • 20

    Monthly active users

  • 129

    Posts

  • 13

    Comments

Community moderators