oday
08/01/2017, 10:43 AMkingsley
08/01/2017, 10:44 AMzip
?oday
08/01/2017, 10:44 AMmenegatti
08/01/2017, 10:45 AModay
08/01/2017, 10:46 AModay
08/01/2017, 10:46 AModay
08/01/2017, 10:46 AMmenegatti
08/01/2017, 10:46 AMfirst
and second
attributesoday
08/01/2017, 10:46 AMkingsley
08/01/2017, 10:47 AMval a = listOf("a", "b")
val b = listOf("c", "d")
a.zip(b).forEach { (first, second) -> print(first + second) }
Whatever works for you manoday
08/01/2017, 10:48 AMallPipes.forEach {
canvas?.drawRect(it.first.distanceX, it.distanceY, it.width,
it.height, painter)
}
oday
08/01/2017, 10:49 AMmenegatti
08/01/2017, 10:49 AModay
08/01/2017, 10:50 AMPipe
which has right left top bottom params, i fill up an array of Pipes and then draw themoday
08/01/2017, 10:50 AMallPipes
arrayoday
08/01/2017, 10:51 AModay
08/01/2017, 10:51 AMfirst
in the loop, I will always get the first of each pair, not both, i want both, so I use two drawRect callsoday
08/01/2017, 10:51 AMmenegatti
08/01/2017, 10:52 AModay
08/01/2017, 10:52 AModay
08/01/2017, 10:53 AModay
08/01/2017, 10:55 AM