naive

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[T any](p func(T) bool) consumer.Naive[T, bool]

func And

func And() consumer.Naive[bool, bool]

func Any

func Any[T any](p func(T) bool) consumer.Naive[T, bool]

func Count

func Count[T any]() consumer.Naive[T, int]

func ForEach

func ForEach[T any](f func(T)) consumer.Naive[T, machine.Void]

func Includes

func Includes[T constraints.Ordered](x T) consumer.Naive[T, bool]

func IsEmpty

func IsEmpty[T any]() consumer.Naive[T, bool]

func Or

func Or() consumer.Naive[bool, bool]

func Product

func Product[T constraints.Integer | constraints.Float]() consumer.Naive[T, T]

func Reduce

func Reduce[S, T any](x T, f func(T, S) T) consumer.Naive[S, T]

func SumFloat

func SumFloat[T constraints.Float]() consumer.Naive[T, T]

func SumInteger

func SumInteger[T constraints.Integer]() consumer.Naive[T, T]

func ToSlice

func ToSlice[T any]() consumer.Naive[T, []T]

Types

This section is empty.

Jump to

Keyboard shortcuts

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