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

alias Seq.toArray/toList/toFSeq #65

Open
ntwilson opened this issue Jun 25, 2019 · 0 comments
Open

alias Seq.toArray/toList/toFSeq #65

ntwilson opened this issue Jun 25, 2019 · 0 comments

Comments

@ntwilson
Copy link
Owner

All are partial functions for infinite sequences. I don't think we should get rid of them like we do some of the other Seq functions that are partial for infinite sequences, because these are really the only functions available to get back to a finite collection if your collection type is seq. But perhaps we could make aliases such as unsafeToArray with a good XML comment to make clear that this doesn't work for infinite sequences (and there's no runtime check to make it safe).

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