I realize this is a really simple bit of code, and I'm quite sure it's recursive, but I just want to make sure it is what I think it is. (Sorry if this is kind of a lame question, I'm just second guessing myself on if I understand what recursion actually is.)
var x = 0
func countToTen() {
if (x <= 10) {
println(x)
x++
countToTen()
}
}