Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LastIndex ¶
func LastIndex[S ~[]E, E comparable](s S, el E) int
Finds the index of the last occurrence of the search value in the slice. Comparison is done with the `==` operator. Returns -1 if the element is not found.
func LastIndexFunc ¶
Finds the index of the last element, that satisfies fn(s[i]). Returns -1 if no elements satisfy the callback.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.