Skip to content

Correct return type for Iterator in lazyMap example of Views section #590

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

Merged
merged 1 commit into from
Sep 28, 2016

Conversation

carl-olin
Copy link
Contributor

The function in the example maps a function T => U on the given Iterable
of type T, and should return an Iterable of type U.


This was mentioned in one of the comments over at http://docs.scala-lang.org/overviews/collections/views.html. I figured I'd make a pull request since I too stalled on this example.

The function in the example maps a function T => U on the given Iterable
of type T, and should return an Iterable of type U.
Copy link
Member

@jarrodu jarrodu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can start using tut so that these kinds of errors get caught by the compiler before they get published.

https://github.com/tpolecat/tut

@SethTisue SethTisue merged commit dffac97 into scala:master Sep 28, 2016
@SethTisue
Copy link
Member

thanks Carl!

Jarrod: yeah, that'd make a great project for somebody

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 this pull request may close these issues.

3 participants