sum

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 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 Class

type Class interface{}

type InL

type InL[F, G, A any] struct {
	Fn    F
	Value A
}

InL is the left side summation.

func (InL[F, G, A]) DEmpty added in v0.0.6

func (il InL[F, G, A]) DEmpty() bool

func (InL[F, G, A]) DRest

func (il InL[F, G, A]) DRest() data.Data[Sum[F, G, A]]

func (InL[F, G, A]) DValue

func (il InL[F, G, A]) DValue() A

type InR

type InR[F, G, A any] struct {
	Fn    G
	Value A
}

InR is the right side summation.

func (InR[F, G, A]) DEmpty added in v0.0.6

func (ir InR[F, G, A]) DEmpty() bool

func (InR[F, G, A]) DRest

func (ir InR[F, G, A]) DRest() data.Data[Sum[F, G, A]]

func (InR[F, G, A]) DValue

func (ir InR[F, G, A]) DValue() A

type Sum

type Sum[F, G, A any] interface {
	data.Data[Sum[F, G, A]]
	// contains filtered or unexported methods
}

Sum is the sum type for Sum.

type Type

type Type struct{}

func NewType

func NewType() Type

Jump to

Keyboard shortcuts

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