Playing cards: Difference between revisions

m
→‎object-oriented: forEachIndexed
m (→‎Kotlin/object-oriented: private companion)
m (→‎object-oriented: forEachIndexed)
Line 3,371:
 
fun print() {
forforEachIndexed { (i, ins indices) {->
print("${this[i]}s ")
if ((i + 1) % 13 == 0 || i == size - 1) println()
}
Anonymous user