We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e6067 commit e1f2c1cCopy full SHA for e1f2c1c
src/ii_collections/n19Sum.kt
@@ -1,7 +1,8 @@
1
package ii_collections
2
3
fun example6() {
4
- val sum = listOf(1, 5, 3).sum()
+ listOf(1, 3).sum() == 4
5
+ listOf("a", "b", "cc").sumBy { it.length } == 4
6
}
7
8
fun Customer.getTotalOrderPrice(): Double {
0 commit comments