fill

object Collection {
  def fill[A](n1: Int, ..., nm: Int)(a: => A): Collection[ ... Collection[A] ... ]
}

fill creates an n-dimensional collection containing the result of some computation a.