You are viewing a single comment's thread. Return to all comments →
def f(num:Int) : List[Int] = if(num==0) List() else num::f(num-1)
I'm sure that's right
Seems like cookies are disabled on this browser, please enable them to open this website
Array Of N Elements
You are viewing a single comment's thread. Return to all comments →
def f(num:Int) : List[Int] = if(num==0) List() else num::f(num-1)
I'm sure that's right