filterBySubstring

fun Iterable<String>.filterBySubstring(substring: String?, ignoreCase: Boolean = false): List<String>

Filter this by searching for elements that contain substring, or if string is not String.isValid, the list itself

Return

a resulting list

Parameters

substring

a string, that must be String.isValid