Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
CAIMEOX committed Mar 15, 2024
1 parent c13ec57 commit 33e1be1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions list/list.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -1082,14 +1082,6 @@ test "is_suffix" {
@assertion.assert_false(List::[1, 2, 3, 4, 5].is_suffix(List::[3, 4, 6]))?
}

/// Separated helper function for intersperse
fn prepend_to_all[T](self : List[T], sep : T) -> List[T] {
match self {
Nil => Nil
Cons(head, tail) => Cons(sep, Cons(head, prepend_to_all(tail, sep)))
}
}

/// Similar to intersperse but with a list of values.
///
/// # Example
Expand Down

0 comments on commit 33e1be1

Please sign in to comment.