diff --git a/array/array.mbt b/array/array.mbt index 8c84be6fd..03f54e19b 100644 --- a/array/array.mbt +++ b/array/array.mbt @@ -50,12 +50,16 @@ pub fn[T] Array::from_iter(iter : Iter[T]) -> Array[T] { /// assert_eq(u, [1, 2, 3, 4, 5, 6]) /// } /// ``` -pub fn[T] push_iter(self : Array[T], iter : Iter[T]) -> Unit { +pub fn[T] Array::push_iter(self : Self[T], iter : Iter[T]) -> Unit { for x in iter { self.push(x) } } +///| +#deprecated("use method call") +pub fnalias Array::push_iter + ///| /// Creates a new array of the specified length, where each element is /// initialized using an index-based initialization function. diff --git a/array/array.mbti b/array/array.mbti index 8026c07e8..17f474600 100644 --- a/array/array.mbti +++ b/array/array.mbti @@ -15,6 +15,7 @@ fn join(Array[String], @string.StringView) -> String fn[A] last(Array[A]) -> A? +#deprecated fn[T] push_iter(Array[T], Iter[T]) -> Unit fn[T] shuffle(Array[T], rand~ : (Int) -> Int) -> Array[T]