nickk
01/25/2018, 3:18 PMRange
to an array?
There is no reduce
function for Ranges, and although this works, it feels a bit awkward:
(0..frames).forEach { i -> duration += animation?.getDuration(i)!! }
ilya.gorbunov
01/25/2018, 6:14 PMIntRange
is Iterable
, so there should be reduce
and fold
extension functions available.