Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](slice []T, element T) (int, bool)
Contains searches for the element in the slice. It returns an index of the found element and a boolean indicator of whether the element was found in the collection. If the returned boolean indicator is false, the returned index is 0 but should not be used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.