types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 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 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