sum

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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]) 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() Sum[F, G, 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]) 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() Sum[F, G, 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