Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[stdlib] Added once_with iterator#6618

Open
gsmyridis wants to merge 6 commits into
modular:mainfrom
gsmyridis:iter-once-with
Open

[stdlib] Added once_with iterator#6618
gsmyridis wants to merge 6 commits into
modular:mainfrom
gsmyridis:iter-once-with

Conversation

@gsmyridis

Copy link
Copy Markdown
Contributor

Linked issue

Fixes #6589.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • Performance improvement (includes benchmark results below)
  • Documentation update
  • New feature or public API (requires prior proposal or issue approval)
  • Refactor / internal cleanup (no user-visible change)
  • Build, CI, or tooling change

Motivation

I already added empty and once iterators. I am now adding once_with iterator, which lazily generates an element by invoking a function.

What changed

...

Testing

Added a couple of dedicated tests.

Checklist

  • The linked issue above has been reviewed by a maintainer and is
    agreed-upon, or this is a trivial fix that does not need prior
    approval
  • PR is small and focused — I've split larger changes into a sequence of
    smaller PRs where possible (see
    pull request sizes)
  • I ran ./bazelw run format to format my changes
  • I added or updated tests to cover my changes
  • If AI tools assisted with this contribution, I have included an
    Assisted-by: trailer in my commit message or this PR description (see
    AI Tool Use Policy)

@gsmyridis gsmyridis requested a review from a team as a code owner May 28, 2026 15:53
@github-actions github-actions Bot added mojo-stdlib Tag for issues related to standard library waiting-on-review labels May 28, 2026
@gsmyridis

Copy link
Copy Markdown
Contributor Author

Hi @NathanSWard, I wanted to follow up on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mojo-stdlib Tag for issues related to standard library waiting-on-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] emptyand once iterators

2 participants