Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsFunc ¶
ContainsFunc returns true if s contains an element for which f returns true.
func Copy ¶ added in v0.0.2
func Copy[S ~[]E, E any](s S) S
Copy returns a copy of s, with each element copied separately. For a shallow copy, call slices.Clone instead.
func Ensure ¶ added in v0.0.5
func Ensure[S ~[]E, E any](s S) S
Ensure returns the slice s if it is non-nil. Otherwise it returns a new initialized slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.