1 个仓库
Data structures that use key-value maps to enforce element uniqueness.
Distinguishing note: The candidates focus on database mappings or UI components, not the architectural use of maps for set storage.
Explore 1 awesome GitHub repository matching data & databases · Map-Based Set Implementations. Refine with filters or upvote what's useful.
这是一个 Go 语言的集合论库,提供了一种使用泛型存储任何可比较类型的唯一元素的数据结构。它作为管理唯一集合并执行交集和差集等数学运算的工具。 该库提供同步集合以防止并发读写操作期间的数据竞争。它还支持将唯一集合与 JSON 数组相互转换,以实现数据持久化和网络传输。 该实现涵盖成员资格测试、集合克隆和大小计算。它包括用于验证集合相等性并将唯一集合导出为排序列表的实用程序。其他功能包括用于顺序处理项目的基于通道的迭代。
Uses a Go map with empty structs to ensure uniqueness and constant-time membership lookups.