sumOf (original) (raw)
@JvmName(name = "sumOfDouble")
inline fun CharSequence.sumOf(selector: (Char) -> Double): Double(source)
@JvmName(name = "sumOfInt")
inline fun CharSequence.sumOf(selector: (Char) -> Int): Int(source)
@JvmName(name = "sumOfLong")
inline fun CharSequence.sumOf(selector: (Char) -> Long): Long(source)
Returns the sum of all values produced by selector function applied to each character in the char sequence.
Since Kotlin
1.4
@JvmName(name = "sumOfUInt")
inline fun CharSequence.sumOf(selector: (Char) -> UInt): UInt(source)
@JvmName(name = "sumOfULong")
inline fun CharSequence.sumOf(selector: (Char) -> ULong): ULong(source)
Returns the sum of all values produced by selector function applied to each character in the char sequence.
Since Kotlin
1.5