Skip to content

to(Seq) doesn't evaluate collection when called on a Seq#238

Merged
szeiger merged 9 commits intoscala:masterfrom
martijnhoekstra:tosemantics
Aug 1, 2019
Merged

to(Seq) doesn't evaluate collection when called on a Seq#238
szeiger merged 9 commits intoscala:masterfrom
martijnhoekstra:tosemantics

Conversation

@martijnhoekstra
Copy link
Copy Markdown

Fixes #236 Not so much about elegance as about getting the job done.

NthPortal
NthPortal previously approved these changes Jul 25, 2019
Copy link
Copy Markdown
Contributor

@NthPortal NthPortal left a comment

Choose a reason for hiding this comment

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

LGTM

Should LinearSeq be handled as well?

@martijnhoekstra
Copy link
Copy Markdown
Author

@NthPortal yes, I guess

@martijnhoekstra
Copy link
Copy Markdown
Author

I duplicated the logic for LinearSeq. The lack of elegance I was referring to earlier is starting to stick out even further.

@martijnhoekstra
Copy link
Copy Markdown
Author

martijnhoekstra commented Jul 28, 2019 via email

@szeiger szeiger merged commit f03c313 into scala:master Aug 1, 2019
@SethTisue SethTisue mentioned this pull request Aug 5, 2019
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.

to(Seq) doesn't force a stream, where to[Seq] did

5 participants