Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper[T any] struct { // contains filtered or unexported fields }
Wrapper is a wrapper around a cols.Collection that provides read-only access to it.
func From ¶
func From[T any](collection cols.Collection[T]) Wrapper[T]
From creates a new Wrapper around the given cols.Collection.
func (Wrapper[T]) Clone ¶
Clone returns a copy of a Wrapper with the same underlying cols.Collection.
func (Wrapper[T]) FindIndex ¶
func (w Wrapper[T]) FindIndex(predicate predication.Predicate[T]) (int, bool)
FindIndex returns the index of the first element that satisfies the given predicate. If no element satisfies the predicate, 0 and false are returned.
Click to show internal directories.
Click to hide internal directories.