Skip to content

feat: Include important functions to lazy object: [iter_lazy, len, fi…#11

Merged
Retype15 merged 2 commits into
mainfrom
feat/implement-iter_lazy-and-another-important-methods
Dec 22, 2025
Merged

feat: Include important functions to lazy object: [iter_lazy, len, fi…#11
Retype15 merged 2 commits into
mainfrom
feat/implement-iter_lazy-and-another-important-methods

Conversation

@Retype15

Copy link
Copy Markdown
Member

New Features & Enhancements:

  1. Lazy Iteration (iter_lazy()): Added efficient streaming iterator for Vec<T>. Supports O(N) traversal by maintaining cursor state across shards, drastically faster than index-based access.
  2. Collection Utilities: Added .first(), .last(), .len(), and .is_empty() to ParcodeCollectionPromise for ergonomic access.
  3. Standard Iterator Traits: Implemented ExactSizeIterator for ParcodeLazyIterator, enabling precise allocations in collect().

@Retype15 Retype15 merged commit 5021d09 into main Dec 22, 2025
4 checks passed
@Retype15 Retype15 deleted the feat/implement-iter_lazy-and-another-important-methods branch December 22, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant