4 ms·
Or alternatively, closer to the original, doing both null checks the same way the original does the first one: val numVowels = getDTO()?.string?.let(::countV
by ptx 5y ago
Or alternatively, closer to the original, doing both null checks the same way the original does the first one:
val numVowels = getDTO()?.string?.let(::countVowels) ?: 0