You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
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()
The text was updated successfully, but these errors were encountered: