Skip to content

Tour: it's not immediately clear the hypothetical foldLeft with a single parameterlist doesn't compile #1647

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

Closed
zuliandri2 opened this issue Feb 24, 2020 · 5 comments · Fixed by #1652
Assignees

Comments

@zuliandri2
Copy link

Hi all

may be this document need update
when I am run this code, it got error

image

@martijnhoekstra
Copy link
Contributor

That's correct. If foldLeft would have a single parameter list instead of multiple parameter lists, the code would look like that. But it doesn't, so the code doesn't look like that (but rather, like below).

Considering you didn't get that immediately, it's plausible that the language around that snippet could be clearer.

@martijnhoekstra martijnhoekstra changed the title update document Tour: it's not immediately clear the hypothetical foldLeft with a single parameterlist doesn't compile Feb 24, 2020
@zuliandri2
Copy link
Author

Hi @martijnhoekstra
when I run the code it say this
andri@Andri-PC: ~-Downloads-idea-IU-193 5233 102-bin_008

please advice
Thank's

@martijnhoekstra
Copy link
Contributor

That code shouldn't compile, it's an example what the code would look like of foldLeft had been defined with a single parameter list.

For concrete questions about how to do things, use gitter (https://gitter.im/scala/scala) or discourse: (https://users.scala-lang.org/)

@zuliandri2
Copy link
Author

Hi @martijnhoekstra

noted, Thank's

@martijnhoekstra
Copy link
Contributor

Reopening. IMO every case of misunderstood doc is an opportunity to improve. I'd like to see if I can phrase more clearly.

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 a pull request may close this issue.

2 participants