Skip to content

Instantly share code, notes, and snippets.

@tocttou
Created December 12, 2017 13:13
Show Gist options
  • Save tocttou/69d0ecd1f1cd8181d11c3a3d3ea000c4 to your computer and use it in GitHub Desktop.
Save tocttou/69d0ecd1f1cd8181d11c3a3d3ea000c4 to your computer and use it in GitHub Desktop.
package main
import utils.oldFor
fun main(args: Array<String>) {
var n = 12
oldFor({ 0 }, { it < n }, { it + 1 }) {
println(it)
n /= 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment