rockerhieu
08/02/2017, 4:05 AMsrcList.subList(from, to).mapTo(destList) { convert(it) }
subList
may throw IndexOutOfBound, doesn't it?diesieben07
08/02/2017, 7:19 AMto
and from
to be constrained to the list's size automatically if they are too large?rockerhieu
08/02/2017, 7:30 AMdiesieben07
08/02/2017, 7:30 AMrockerhieu
08/02/2017, 7:30 AMdiesieben07
08/02/2017, 7:31 AMrockerhieu
08/02/2017, 7:31 AMfrom
, minimize to
diesieben07
08/02/2017, 7:31 AMfrom
is out of bounds? 😄rockerhieu
08/02/2017, 7:32 AMsrcList.take(count)
diesieben07
08/02/2017, 7:32 AMtake
never throws 😉rockerhieu
08/02/2017, 7:32 AM