You are viewing a single comment's thread. Return to all comments →
I had to delete the stub provided.
Scala:
def f(list:List[Int]):Int = list.foldLeft(0)({case (acc,i) => acc+1})
Seems like cookies are disabled on this browser, please enable them to open this website
List Length
You are viewing a single comment's thread. Return to all comments →
I had to delete the stub provided.
Scala: