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

Change Array.iter to Array.map #39

Open
ghost opened this issue Sep 25, 2020 · 1 comment
Open

Change Array.iter to Array.map #39

ghost opened this issue Sep 25, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 25, 2020

In the chapter 13, you said I need to implement a double function that doubles all the values of an array with Array.iter. The function that Array.iter takes must need to be type unit. So the correct way of doing that is with Array.map.

@ghost ghost closed this as completed Sep 25, 2020
@ghost ghost reopened this Sep 25, 2020
@Anlesvavor
Copy link

The description says that you have to modify the array on place, so that's why.

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

1 participant