Hexa
10/18/2019, 7:34 AMelizarov
10/18/2019, 7:37 AMchunked
, max
, etc are building blocks that are used by developers all the time, so there are ready-to-use abstractions out-of-the box that you can use to avoid reinventing the wheel.Hexa
10/18/2019, 8:17 AMelizarov
10/18/2019, 8:35 AMif (a > b) max = b
would turn into proper instructions. The whole progress in programming hinges on constant raising of the bar of abstractions.tschuchort
10/18/2019, 9:22 AMelizarov
10/18/2019, 9:43 AMfor (...) if (a > b) { update max & index }
loop is a boiler plate that you have to write over and over again countless times. That’s why we have Kotlin standard library, so that you don’t have to constantly reinvent the wheel.tschuchort
10/18/2019, 10:24 AM