Documentation ¶
Index ¶
- func MapContainsKey[T comparable, U any](m map[T]U, k T) bool
- func MapContainsValue[T comparable, U comparable](m map[T]U, v U) bool
- func MapKeyPropositionAll[T comparable, U any](m map[T]U, p func(T) bool) bool
- func MapKeyPropositionAny[T comparable, U any](m map[T]U, p func(T) bool) bool
- func MapKeyPropositionNone[T comparable, U any](m map[T]U, p func(T) bool) bool
- func MapValuePropositionAll[T comparable, U any](m map[T]U, p func(U) bool) bool
- func MapValuePropositionAny[T comparable, U any](m map[T]U, p func(U) bool) bool
- func MapValuePropositionNone[T comparable, U any](m map[T]U, p func(U) bool) bool
- func SliceAllGreaterThan[T cmp.Ordered](s []T, v T) bool
- func SliceAllGreaterThanOrEqualTo[T cmp.Ordered](s []T, v T) bool
- func SliceAllLessThan[T cmp.Ordered](s []T, v T) bool
- func SliceAllLessThanOrEqualTo[T cmp.Ordered](s []T, v T) bool
- func SliceAnyGreaterThan[T cmp.Ordered](s []T, v T) bool
- func SliceAnyGreaterThanOrEqualTo[T cmp.Ordered](s []T, v T) bool
- func SliceAnyLessThan[T cmp.Ordered](s []T, v T) bool
- func SliceAnyLessThanOrEqualTo[T cmp.Ordered](s []T, v T) bool
- func SliceContains[T cmp.Ordered](s []T, v T) bool
- func SliceContainsAll[T cmp.Ordered](s []T, v []T) bool
- func SliceContainsAny[T cmp.Ordered](s []T, v []T) bool
- func SliceContainsNone[T cmp.Ordered](s []T, v []T) bool
- func SlicePropositionAll[T any](s []T, proposition func(T) bool) bool
- func SlicePropositionAny[T any](s []T, proposition func(T) bool) bool
- func SlicePropositionNone[T any](s []T, proposition func(T) bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapContainsKey ¶
func MapContainsKey[T comparable, U any](m map[T]U, k T) bool
MapContainsKey returns true if the map contains the key.
func MapContainsValue ¶
func MapContainsValue[T comparable, U comparable](m map[T]U, v U) bool
MapContainsValue returns true if the map contains the value.
func MapKeyPropositionAll ¶
func MapKeyPropositionAll[T comparable, U any](m map[T]U, p func(T) bool) bool
MapKeyPropositionAll returns true if all of the keys in the map satisfy the proposition.
func MapKeyPropositionAny ¶
func MapKeyPropositionAny[T comparable, U any](m map[T]U, p func(T) bool) bool
MapKeyPropositionAny returns true if any of the keys in the map satisfy the proposition.
func MapKeyPropositionNone ¶
func MapKeyPropositionNone[T comparable, U any](m map[T]U, p func(T) bool) bool
MapKeyPropositionNone returns true if none of the keys in the map satisfy the proposition.
func MapValuePropositionAll ¶
func MapValuePropositionAll[T comparable, U any](m map[T]U, p func(U) bool) bool
MapValuePropositionAll returns true if all of the values in the map satisfy the proposition.
func MapValuePropositionAny ¶
func MapValuePropositionAny[T comparable, U any](m map[T]U, p func(U) bool) bool
MapValuePropositionAny returns true if any of the values in the map satisfy the proposition.
func MapValuePropositionNone ¶
func MapValuePropositionNone[T comparable, U any](m map[T]U, p func(U) bool) bool
MapvaluePropositionNone returns true if none of the values in the map satisfy the proposition.
func SliceAllGreaterThan ¶
SliceAllGreaterThan returns true if all the values in the slice are greater than the value.
func SliceAllGreaterThanOrEqualTo ¶
SliceAllGreaterThanOrEqualTo returns true if all the values in the slice are greater than or equal to the value.
func SliceAllLessThan ¶
SliceAllLessThan returns true if all the values in the slice are less than the value.
func SliceAllLessThanOrEqualTo ¶
SliceAllLessThanOrEqualTo returns true if all the values in the slice are less than or equal to the value.
func SliceAnyGreaterThan ¶
SliceAnyGreaterThan returns true if any of the values in the slice are greater than the value.
func SliceAnyGreaterThanOrEqualTo ¶
SliceAnyGreaterThanOrEqualTo returns true if any of the values in the slice are greater than or equal to the value.
func SliceAnyLessThan ¶
SliceAnyLessThan returns true if any of the values in the slice are less than the value.
func SliceAnyLessThanOrEqualTo ¶
SliceAnyLessThanOrEqualTo returns true if any of the values in the slice are less than or equal to the value.
func SliceContains ¶
SliceContains returns true if the slice contains the value.
func SliceContainsAll ¶
SliceContainsAll returns true if the slice contains all the values.
func SliceContainsAny ¶
SliceContainsAny returns true if the slice contains any of the values.
func SliceContainsNone ¶
SliceContainsNone returns true if the slice contains none of the values.
func SlicePropositionAll ¶
SlicePropositionAll returns true if the proposition of all of the values in the slice satisfy the proposition.
func SlicePropositionAny ¶
SlicePropositionAny returns true if the proposition of any of the values in the slice satisfy the proposition.
func SlicePropositionNone ¶
SlicePropositionNone returns true if the proposition of none of the values in the slice satisfy the proposition.
Types ¶
This section is empty.