Hacker News new | ask | show | jobs
by ptx 1730 days 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