types

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloneable added in v0.2.0

type Cloneable[T any] interface {
	Clone() T
}

type Comparable added in v0.2.0

type Comparable[T any] interface {
	// Compare returns -1, 0, 1 if this is less than, equal to, to greater than other
	Compare(other T) int
}

type Function1

type Function1[T any] func(T)

type Iterable

type Iterable[T any] interface {
	ForEach(Function1[T])
	Iterator() Iterator[T]
}

type Iterator

type Iterator[T any] interface {
	HasNext() bool
	Next() T
}

type Mapper

type Mapper[S any, T any] func(S) T

type MapperWithError added in v0.6.6

type MapperWithError[S any, T any] func(S) (T, error)

type Predicate

type Predicate[T any] func(T) bool

Jump to

Keyboard shortcuts

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