☯️ v0.0.0-dev.3 — Classifier & TrueSet
☯️ v0.0.0-dev.3 — Classifier & TrueSet
We’re thrilled to announce v0.0.0-dev.3 of @fizzwiz/sorted, introducing two powerful new abstractions: Classifier and TrueSet. This release takes the library far beyond simple sorted collections, enabling hierarchical keys, prefix queries, and representation-based equivalence.
π§ Core Enhancements
Classifier — a rich, multidimensional map
A Classifier stores entries whose keys are arrays (any iterable). It supports:
- Storing multiple items per key
- Efficient prefix queries with wildcards
- Sorted traversal of both keys and items
- Flexible equivalence via custom sorting rules
TrueSet — a representation-based set
A TrueSet defines equivalence using a representation function (repr). It enables:
- Equivalence among objects, not just primitives
- Aggregation of equivalent items in sorted, enumerable classes
π¦ Why This Matters
These new structures let you express equivalence and ordering in ways JavaScript’s native collections simply cannot:
- Equivalence can be defined by length, content, structure, or any meaningful attribute
Classifierkeys can be multidimensional sequences, enabling deeply hierarchical or composite representations- Prefix queries and wildcard matching make complex hierarchical traversal both intuitive and efficient
⚙️ Runtime Sorting — 𧬠Evolving Populations — π Statistical Insight
Because sorting happens during insertion, @fizzwiz/sorted naturally supports dynamic, data-driven systems:
- Items can represent candidates evolving toward an optimal solution
- Multiple populations can evolve in parallel, each governed by its own
reprfunction - Each equivalence class tracks its frequency, giving you immediate statistical insight
Together, these capabilities make @fizzwiz/sorted a flexible engine for search, optimization, classification.
π§ͺ This is a prerelease, but it’s ready to explore. Your early feedback will help refine the API and shape upcoming features.
— @fizzwiz ✨
Comments
Post a Comment