diff --git a/library/collection/List.scala b/library/collection/List.scala index be664ba81e92059210ca0661c41e98efb41abb3c..7b8692a8b90b9685153a3930d079a1c5c7f45454 100644 --- a/library/collection/List.scala +++ b/library/collection/List.scala @@ -504,6 +504,7 @@ object List { l.reverse } + @library def fill[T](n: BigInt)(x: T) : List[T] = { if (n <= 0) Nil[T] else Cons[T](x, fill[T](n-1)(x))