list

package
v1.0.10-0...-ca1957b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conditions

type Conditions[T any] interface {
	All(condition func(item T) bool) bool
	Any(condition func(item T) bool) bool
}

func NewConditions

func NewConditions[T any](list []T) Conditions[T]

type ContainsElementChecker

type ContainsElementChecker[T any] interface {
	Contains(v T) bool
}

func NewContainsElementChecker

func NewContainsElementChecker[T comparable](in []T) ContainsElementChecker[T]

func NewDeepContainsElementChecker

func NewDeepContainsElementChecker[T any](in []T) ContainsElementChecker[T]

type Diff

type Diff[T any] interface {
	Diff(old []T, new []T) []T
}

func NewDeepDiff

func NewDeepDiff[T any]() Diff[T]

func NewDiff

func NewDiff[T comparable]() Diff[T]

type ListFilter

type ListFilter[T any] interface {
	Filter(in []T, shouldBeIncluded func(val T) bool) []T
}

func NewListFilter

func NewListFilter[T any]() ListFilter[T]

type ListMapTo

type ListMapTo[T any, S any] interface {
	MapTo(in []T, mapItemTo func(val T) S) []S
}

func NewListMapTo

func NewListMapTo[T any, S any]() ListMapTo[T, S]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL