toSet

fun toSet(): Set<Long>(source)

Return a Set of all elements. The returned set does NOT guarantee the element iteration order of the list.