展示 HN:Ordered – 一个用于 Zig 的排序集合库
我为Zig语言制作了一个早期版本的排序集合库。排序集合是一种数据结构,它保持数据的排序状态。这些数据结构的例子包括Java中的`java.util.TreeMap`和C++中的`std::map`。这些数据结构主要用于快速查找(点查找)和快速范围查询。<p>该库可以在GitHub上找到:<a href="https://github.com/CogitatorTech/ordered" rel="nofollow">https://github.com/CogitatorTech/ordered</a>
查看原文
I made an early version of a sorted collection library for Zig. Sorted collections are data structures that maintain the data in sorted order. Examples of these data structures are `java.util.TreeMap` in Java and `std::map` in C++. These data structures are mainly used for fast lookups (point search) and fast range searches.<p>The library is available on GitHub: <a href="https://github.com/CogitatorTech/ordered" rel="nofollow">https://github.com/CogitatorTech/ordered</a>