Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All[E comparable](s []E, e ...E) bool
All If all the elements in e that are in the s then return true
func Any ¶
func Any[E comparable](s []E, e ...E) bool
Any If one of the elements in e that are in the s then return true
func Contains ¶
func Contains[E comparable](s []E, e E) bool
Contains reports whether e is present in s
func Index ¶
func Index[E comparable](s []E, e E) int
Index returns the index of the first occurrence of e in s, or -1 if not present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.