monoid

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default[T any] struct {
	// contains filtered or unexported fields
}

func (*Default[T]) Get

func (m *Default[T]) Get() T

type Monoid

type Monoid[T any] interface {
	Append(T) Monoid[T]
	Get() T
}

func SumFloat

func SumFloat[T constraints.Float]() Monoid[T]

Jump to

Keyboard shortcuts

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