Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter[T any] interface { Apply(...T) []T }
Filter is a generic interface for a filter that is applied to a slice of type 'T' and returns a subset of the original input as []T
type SimpleFilter ¶
SimpleFilter is a filter that filters based on a supplied predicate (Predicate)
func (SimpleFilter[T]) Apply ¶
func (f SimpleFilter[T]) Apply(inputs ...T) []T
Apply returns the subset of inputs matching the SimpleFilter's Predicate
Click to show internal directories.
Click to hide internal directories.