Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] Naming for iter #407

Open
hackwaly opened this issue May 16, 2024 · 2 comments
Open

[Proposal] Naming for iter #407

hackwaly opened this issue May 16, 2024 · 2 comments

Comments

@hackwaly
Copy link
Contributor

hackwaly commented May 16, 2024

as_iter -> iter
iter -> for_each

[1, 2, 3, 4, 5]
  .iter()
  .for_each(fn { it => print(it) })
@bobzhang
Copy link
Contributor

iter
each ?

@shamiao
Copy link

shamiao commented May 22, 2024

vote .iter() & .each(f). This allows the term 'iter' indicates @iter.Iter types without ambiguity.

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

No branches or pull requests

3 participants