Is Enum.reduce the "best fitting Enum function" for total_quantity in `boutique-inventory`?
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Search the repository for the quoted "best fitting Enum function" message and the total_quantity exercise guidance. Update the wording to say that Enum.reduce is for practice rather than the best-fitting function, and verify the resulting guidance matches the requested phrasing.
Written by the indexing model from the issue text.
Description
Solution Implementation:
def total_quantity(item) do
Map.values(item.quantity_by_size)
|> Enum.sum()
end
The solution says:
I agree that reduce is a good function/concept to practice with for this solution but "best fitting" seems like a stretch. It took me a long time to understand the concept of reduce when learning functional programming and this may be a head scratcher for some folks new to Elixir and functional programming togther.
Would it be possible to change that message to say "Use the Enum.reduce function in the total_quantity function to practice."?
This doesn't give folks who can't figure out reduce right away the feeling like they are doing it "wrong".
- Dominant language
- Elixir
- Stars
- 33
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from exercism/elixir-analyzer
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
exercism/elixir-analyzer#447 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
exercism/elixir-analyzer#410 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
exercism/elixir-analyzer#352 ·
-
x:action/improve
Difficulty 3/5 1-2 days Newbie friendliness 35/100
exercism/elixir-analyzer#340 · 5 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
exercism/elixir-analyzer#229 · 5 comments ·
All issues in exercism/elixir-analyzer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
phoenixframework/phoenix#6847 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
beyond-all-reason/teiserver#1584 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ash-project/ash#2954 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
membraneframework/boombox#149 ·