@@ -149,8 +149,8 @@ func (s *Slice[T]) Seq() iter.Seq[T] {
152−// SeqWithIndex returns an iterator that yields index-value pairs from the slice.
152+// Seq2 returns an iterator that yields index-value pairs from the slice.
153−func (s *Slice[T]) SeqWithIndex() iter.Seq2[int, T] {
153+func (s *Slice[T]) Seq2() iter.Seq2[int, T] {
154 // Take a snapshot to avoid holding the lock during iteration
154 // Take a snapshot to avoid holding the lock during iteration
155 items := s.Slice()
155 items := s.Slice()
156 return func(yield func(int, T) bool) {
156 return func(yield func(int, T) bool) {