intellij-randomness / com.fwdekker.randomness.word / kotlin.collections.Set

Extensions for kotlin.collections.Set

maxLength

fun Set<String>.maxLength(): Int

Returns the length of the longest word, or Integer.MAX_VALUE if this set is empty.

minLength

fun Set<String>.minLength(): Int

Returns the length of the shortest word, or 1 if this set is empty.