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