Skip to content

Update enum.md to introduce map before each#3036

Open
jl33-ai wants to merge 4 commits intoelixirschool:mainfrom
jl33-ai:patch-1
Open

Update enum.md to introduce map before each#3036
jl33-ai wants to merge 4 commits intoelixirschool:mainfrom
jl33-ai:patch-1

Conversation

@jl33-ai
Copy link

@jl33-ai jl33-ai commented Feb 4, 2025

Change
Introduce map before each for more easy to follow ordering.

Why?
While this is an extreme nitpick, I did find the original ordering slightly unintuitive.

When I read "It may be necessary to iterate over a collection without producing a new value", this led me to waste a few seconds searching for the classic map function (this is what the majority of developers be familiar with).
Since each is a less common function, I assumed that I had accidentally missed the map function.

Introduce 'map' before 'each' for more easy to follow ordering.
@jl33-ai jl33-ai requested a review from a team as a code owner February 4, 2025 01:07
@jl33-ai jl33-ai changed the title Update enum.md Update enum.md to introduce map before each Feb 4, 2025
Copy link
Contributor

@kinson kinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@doomspork is this worth bumping the version for?

@doomspork
Copy link
Member

@kinson @jl33-ai I think it would be a good idea to bump the version on this.

@kinson
Copy link
Contributor

kinson commented Aug 1, 2025

@jl33-ai if it helps, here is a bit more context on lesson versioning: https://github.com/elixirschool/elixirschool/blob/main/CONTRIBUTING.md#a-note-on-lesson-versions

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.

3 participants