Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Weaken receiver type of toPersistentHashSet to Iterable #77

@GlassBricks

Description

@GlassBricks

All other toImmutable and toPersistent functions for immutable/persistent lists/sets take Iterable as their receiver, however toPersistentHashSet takes a Set.

toHashSet in the kotlin stdlib also takes Iterable.

This is inconvenient when converting from some other collection into a persistent hash set.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions