Collections
Collections provides eager and lazy transformations for ordinary Python iterables. The API uses Python’s iteration, equality, ordering, and exception semantics.
from titanspan.collections import collect
names = ( collect(["ada", "lin", "ada"]) .map(str.title) .unique() .sort() .all())Installation
Section titled “Installation”Collections is included in Titanspan and adds no runtime dependencies. Use the installation guide to set up a checkout with the locked project dependencies.
Choose a collection
Section titled “Choose a collection”- Use
Collectionwhen you need a shallow snapshot and repeated access. - Use
LazyCollectionwhen you want to process values as an iterator. - Use native lists, tuples, sets, and dictionaries for direct operations that already express the required behavior.
Collections does not require an Application or Container. It can run in scripts, tests, and application code without starting framework services.
Guides
Section titled “Guides”- Eager collections: sequence behavior, transformations, and selection.
- Grouping and aggregation: ordering, native mappings, callbacks, errors, and typing.
- Lazy collections: iterator ownership, bounded processing, and materialization.
- Behavioral specification: complete public semantics and implementation limits.
Benchmarks compare representative pipelines with standard-library implementations. They report measurements without imposing shared-runner thresholds.
