Skip to content

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