Skip to content

add ability to create slice of another type #4

@shoenig

Description

@shoenig

One pattern that comes up is using a Set (or map) to de-duplicate a slice of (e.g.) strings, and then use those strings to create a slice of some other object. We could make this another one-liner with something like Set[A].ToList[B](f func(a A) B) []B helper method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions