unique
fun <T, EachT, ValueT> OptionWithValues<List<T>, EachT, ValueT>.unique(): OptionWithValues<Set<T>, EachT, ValueT>
Make a multiple option return a unique set of values
Example:
val opt: Set<Int> by option().int().multiple().unique()
val opt2: Set<Int> by option().int().split(",").default(emptyList()).unique()
Content copied to clipboard