We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
empty
See scala/collection-strawman#145 (comment) and scala/scala3#2573 for motivation.
The following should be enough:
def empty: CC[A] = iterableFactory.empty[A]
Or maybe:
def empty: C = fromSpecificIterable(iterableFactory.empty[A])
The text was updated successfully, but these errors were encountered:
Note that the changes proposed in scala/scala3#2573 (comment) not only require empty but also point (in case there is no subsequent generator).
point
Sorry, something went wrong.
Let's see what Dotty does about this and maybe implement it in 2.14.
Are there any collections that don't have an empty?
it's defined on IterableOps, so all collections have one
IterableOps
No branches or pull requests
See scala/collection-strawman#145 (comment) and scala/scala3#2573 for motivation.
The following should be enough:
Or maybe:
The text was updated successfully, but these errors were encountered: