func (s *SinglyLinkedList[T]) GetIndexOf(value T) int {
	index := 0
	current := s.head
	for current != nil {
		if reflect.DeepEqual(value, current.Value) {
			return index
		}
		current = current.Next
		index++
	}
	current = nil
	return -1
}
// GetIndexOf returns the index of the first occurence
GetIndexOf returns the index of the first occurence
// GetIndexOf returns the index of the first occurence
func (s *SinglyLinkedList[T]) GetIndexOf(value T) int {
	index := 0
	current := s.head
	for current != nil {
		if reflect.DeepEqual(value, current.Value) {
			return index
		}
		current = current.Next
		index++
	}
	current = nil
	return -1
}
func ( s * SinglyLinkedList [ T ] ) GetIndexOf ( value T ) int { index := 0 current := s . head for current != nil { if reflect . DeepEqual ( value , current . Value ) { return index } current = current . Next index ++ } current = nil return - 1 }
GetIndexOf returns the index of the first occurence
GetIndexOf returns the index of the first occurence