partitions(2, 0, 2).each { println it }