Skip to content
Ruslan Sennov edited this page Sep 12, 2017 · 3 revisions

An ad-hoc Vavr list can be created as follows:

val list = list(1, 2, 3)

A Vavr list can be converted to a Kotlin MutableList:

val mutableList = list(1, 2, 3).toMutableList()

A Kotlin Iterable can be converted to a Vavr List:

val vavrList = listOf(1, 2, 3).toVavrList()
Clone this wiki locally