Dict.foldr documentation possibly incorrect
Confidenceman02 opened this issue · 2 comments
Confidenceman02 commented
In the foldr documentation the function getAges
it says it returns a List String.
However in the commented return value we have:
-- getAges users == [28,19,33]Which would suggest the actual return type is List Int.
It's fairly harmless but might be enough to cause folks a head scratch moment like it did for me.
We can either type the example code as List Int or change the commented return code as:
-- getAges users == ["28","19","33"]github-actions commented
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.