I have a case where I want to call a method n times, where n is an Int. Is there a good way to do this in a \"functional\" way in Scala?
case class Event(name: S
import List._ fill(10) { println("hello") }
Simple, built-in, and you get a List of Units as a souvenier!
But you'll never need to call a function multiple times if you're programming functionally.