的scaladocVector#fill
看起来像:
def fill[A](n: Int)(elem: ⇒ A): Vector[A]
n the number of elements contained in the collection.
elem the element computation
returns A collection that contains the results of n evaluations of elem.
但这就是我调用它的方式:
Vector.fill[Boolean](5)(true)
在哪里elem
?这是什么意思?