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

Dict.foldr documentation possibly incorrect #1151

Open
Confidenceman02 opened this issue Dec 25, 2024 · 2 comments
Open

Dict.foldr documentation possibly incorrect #1151

Confidenceman02 opened this issue Dec 25, 2024 · 2 comments

Comments

@Confidenceman02
Copy link

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"]
Copy link

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.

@lue-bird
Copy link

same for foldl

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

No branches or pull requests

2 participants