tabulate

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

tabulate creates an n-dimensional collection containing the result of the function f applied to a range of integers.