You are viewing a single comment's thread. Return to all comments →
better to avoid materializing big strings:
def f(n: Int) = Stream.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 →
better to avoid materializing big strings: