Generic collection types for the Pure ecosystem — immutable-friendly collections backed by IDeterminedHash equality.
Pure.Collections.Generic provides collection types designed to integrate with the IDeterminedHash equality model. Each collection uses EqualityComparerByDeterminedHash as its default equality comparer, enabling content-addressed lookups over any type that implements IDeterminedHash.
| Type | Description |
|---|---|
Dictionary<TKey, TValue> | Hash map keyed by IDeterminedHash equality |
Set<T> | Hash set with IDeterminedHash membership checks |
Array<T> | Immutable array wrapper over IDeterminedHash elements |
OrderedDictionary<TKey, TValue> | Insertion-ordered dictionary with IDeterminedHash keys |
Lookup<TKey, TElement> | Multi-value lookup grouped by IDeterminedHash keys |
EqualityComparerByDeterminedHash | IEqualityComparer<T> using IDeterminedHash byte sequences |
All types live in the Pure.Collections.Generic namespace.
- Hash-based equality — collections compare elements by their
IDeterminedHashbyte sequences, not byobject.GetHashCode(). - AOT-compatible — no reflection; all generics are constrained at compile time.
Pure.HashCodes.Abstractions—IDeterminedHashinterface