Skip to content

Improve conversion from collections to arrays #14

@DanielGronau

Description

@DanielGronau

Java collections in Kotlin can be easily converted to arrays using reified generics, and it would be nice to have the same functionality directly on Vavr collections.

The implementation can be as simple as that:

inline fun <reified T> io.vavr.collection.List<T>.toTypedArray(): Array<T> = this.toJavaList().toTypedArray()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions