kotlin collection to linked list
snippet in kotlin

kotlin collection to linked list

user1674

// Uses Java's LinkedList
val linkedList = someCollection.toCollection(java.util.LinkedList())