set

fun set(items: List<T>)(source)

Replaces the selection wholesale. The anchor is set to the last item in items, or null when items is empty.