Skip to content

Commit 516dfe2

Browse files
committed
Remove deprecated Array::split_at function and update documentation
1 parent 48defaf commit 516dfe2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

builtin/array.mbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ pub fn[T] Array::rev(self : Array[T]) -> Array[T] {
728728
/// assert_eq(v2, [4, 5])
729729
/// ```
730730
#deprecated("Use ArrayView instead, e.g, (a[:index], a[index:])")
731+
#doc(hidden)
731732
pub fn[T] Array::split_at(self : Array[T], index : Int) -> (Array[T], Array[T]) {
732733
if index < 0 || index > self.length() {
733734
let len = self.length()

builtin/pkg.generated.mbti

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ fn[T] Array::search_by(Self[T], (T) -> Bool) -> Int?
144144
fn[T] Array::set(Self[T], Int, T) -> Unit
145145
fn[T] Array::shrink_to_fit(Self[T]) -> Unit
146146
fn[T] Array::split(Self[T], (T) -> Bool raise?) -> Self[Self[T]] raise?
147-
#deprecated
148-
fn[T] Array::split_at(Self[T], Int) -> (Self[T], Self[T])
149147
fn[T : Eq] Array::starts_with(Self[T], Self[T]) -> Bool
150148
fn[T : Eq] Array::strip_prefix(Self[T], Self[T]) -> Self[T]?
151149
fn[T : Eq] Array::strip_suffix(Self[T], Self[T]) -> Self[T]?

0 commit comments

Comments
 (0)