Lucas
05/13/2019, 11:44 AMa b c d
iterated as a b; b c; c d
. This is to calculate the delta between elementsdiesieben07
05/13/2019, 11:49 AMval list = listOf(1, 2, 3, 4, 5, 6)
println(list.zipWithNext())
diesieben07
05/13/2019, 11:49 AM[(1, 2), (2, 3), (3, 4), (4, 5), (5, 6)]
Lucas
05/13/2019, 12:17 PMLucas
05/13/2019, 12:18 PMphldavies
05/13/2019, 12:18 PMzipWithNext
also takes a transformation. i.e. list.zipWithNext { a, b -> a - b }
Lucas
05/13/2019, 12:19 PMphldavies
05/13/2019, 12:19 PMdiesieben07
05/13/2019, 12:20 PMphldavies
05/13/2019, 12:22 PMLucas
05/13/2019, 12:22 PMiter()
in pythonkarelpeeters
05/13/2019, 12:22 PMLucas
05/13/2019, 12:23 PMnumpy
type thing for kotlin...Matej Drobnič
05/14/2019, 7:56 PMMatej Drobnič
05/14/2019, 7:56 PM