mirai-core / net.mamoe.mirai.utils / toSet

toSet

fun <E> LockFreeLinkedList<E>.toSet(): Set<E>

Collect all the elements into a MutableSet then cast it as a Set