toHashSet

fun <T> MongoIterable<T>.toHashSet(): HashSet<T>

Returns a HashSet of all elements.