toSet

fun <T> Stream<T>.toSet(): Set<T>

Similar to Collectors.toSet except the Set is guaranteed to be ordered.