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

maxLength

fun Set<String>.maxLength(): Int

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

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