Used sumOf instead of deprecated sumBy
This commit is contained in:
parent
ac2275b7ae
commit
ac031b0001
|
@ -12,7 +12,7 @@ fun main() {
|
|||
Product("bread", 2.0),
|
||||
Product("wine", 5.0)
|
||||
)
|
||||
products.sumByDouble { it.price } eq 7.0
|
||||
products.sumOf { it.price } eq 7.0
|
||||
|
||||
products.sortedByDescending { it.price } eq
|
||||
"[Product(description=wine, price=5.0)," +
|
||||
|
|
Loading…
Reference in New Issue