Documentation
¶
Overview ¶
Package last provides helpers for retrieving a last element of a slice that satisfies a condition
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByPredicate ¶
type ByPredicate[T any] struct { // contains filtered or unexported fields }
ByPredicate tail of the By method
func (ByPredicate[T]) Of ¶
func (l ByPredicate[T]) Of(elements ...T) (T, bool)
Of the predicate apply method
type OfElements ¶
type OfElements[T any] struct { // contains filtered or unexported fields }
OfElements tail of the Of method
func (OfElements[T]) By ¶
func (l OfElements[T]) By(predicate func(T) bool) (T, bool)
By the predicate apply method
Click to show internal directories.
Click to hide internal directories.