You are viewing a single comment's thread. Return to all comments →
Is mine functional or rather lame?
def f(n : Int) : Unit = { println("Hello World"); if (n > 1) f(n-1) }
Seems like cookies are disabled on this browser, please enable them to open this website
Hello World N Times
You are viewing a single comment's thread. Return to all comments →
Is mine functional or rather lame?
def f(n : Int) : Unit = { println("Hello World"); if (n > 1) f(n-1) }