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

add examples for eachk #285

Merged
merged 3 commits into from
Feb 5, 2025
Merged

add examples for eachk #285

merged 3 commits into from
Feb 5, 2025

Conversation

rwtolbert
Copy link
Contributor

add examples for eachk

@sogaiu sogaiu marked this pull request as draft February 5, 2025 04:15
@sogaiu
Copy link
Collaborator

sogaiu commented Feb 5, 2025

May be using [:a :b :c :d :e] as below instead of [1 2 3 4 5] still provides enough "surprise" and is slightly less confusing?

# prints 0 1 2 3 4
(eachk i [:a :b :c :d :e] (prin i " ")) # -> nil

Above, I tried to work in a bit of the content of our discussion on Zulip as well.

@sogaiu
Copy link
Collaborator

sogaiu commented Feb 5, 2025

LGTM

@sogaiu sogaiu marked this pull request as ready for review February 5, 2025 16:10
@sogaiu sogaiu merged commit d97afda into janet-lang:master Feb 5, 2025
1 check passed
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.

2 participants