loading...

Discussion on: Daily Challenge #110 - Love VS. Friendship

Collapse
konvio profile image
Vitaliy Kononenko

Here is my fun solution using Kotlin:

fun wordsToMarks(word: String) = word.toCharArray()
        .map { it + 1 - 'a' }
        .sum()