Thanks to visit codestin.com Credit goes to kotlinlang.org
Warning since 1.5
Use sumOf instead.
this.sumOf(selector)
Returns the sum of all values produced by selector function applied to each character in the char sequence.
Thanks for your feedback!