Skip to content
Alex Zuzin edited this page Apr 13, 2017 · 3 revisions

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

val list = list(1, 2, 3)

A Javaslang list can be converted to a Kotlin MutableList:

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

A Kotlin Iterable can be converted to a Javaslang List:

val jsList = listOf(1, 2, 3).toJsList()

Clone this wiki locally