toSet

abstract fun <T> toSet(iterable: Iterable<T>): Set<T>

Iterable 转换为 Set.

Return

转换后的 Set

Parameters

T

元素类型

iterable

需要转换的 Iterable