From 3fa0513e67759c6b5b9fc0884175edf2318b92d1 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss <ekneuss@gmail.com> Date: Wed, 19 Aug 2015 16:04:15 +0200 Subject: [PATCH] Annotate fill with @library --- library/collection/List.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/library/collection/List.scala b/library/collection/List.scala index be664ba81..7b8692a8b 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)) -- GitLab