You are viewing a single comment's thread. Return to all comments →
or here is another way: def f(n:Int) = List.fill(n)("Hello World").foreach(println)
def f(n:Int) = List.fill(n)("Hello World").foreach(println)
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 →
or here is another way:
def f(n:Int) = List.fill(n)("Hello World").foreach(println)