sumOf

@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
@JvmName(name = "sumOfBigDecimal")
inline fun CharSequence.sumOf(selector: (Char) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigInteger")
inline fun CharSequence.sumOf(selector: (Char) -> BigInteger): BigInteger(source)

Returns the sum of all values produced by selector function applied to each character in the char sequence.

Since Kotlin

1.4