Skip to content

Add an empty method to each collection #28

Closed
@julienrf

Description

@julienrf

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])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions