well, what he showed you was function recursion and works quite well. It's not a built in function!