Skip to content

Repository files navigation

Pure.Collections.Generic

Generic collection types for the Pure ecosystem — immutable-friendly collections backed by IDeterminedHash equality.

.NET build & testBuild and DeployNuGetLicense: MIT

Overview

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.

Types

TypeDescription
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
EqualityComparerByDeterminedHashIEqualityComparer<T> using IDeterminedHash byte sequences

All types live in the Pure.Collections.Generic namespace.

Design Principles

  • Hash-based equality — collections compare elements by their IDeterminedHash byte sequences, not by object.GetHashCode().
  • AOT-compatible — no reflection; all generics are constrained at compile time.

Dependencies

About

Generic collection types for the Pure ecosystem — Dictionary, Set, Array, OrderedDictionary, and Lookup backed by IDeterminedHash equality.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from kudima03/Pure.Template