Versions in this module Expand all Collapse all v0 v0.0.10 Apr 22, 2022 v0.0.9 Apr 22, 2022 v0.0.8 Apr 12, 2022 v0.0.7 Apr 12, 2022 v0.0.6 Apr 12, 2022 Changes in this version type Left + func (l Left[A, B]) DEmpty() bool type Right + func (r Right[A, B]) DEmpty() bool v0.0.5 Apr 11, 2022 v0.0.4 Apr 6, 2022 Changes in this version + func Apply(fL func(a A) C, fR func(b B) C, v Either[A, B]) C + func Lefts(es list.List[Either[A, B]]) (vs list.List[A]) + type Class interface + NewLeft func(A) Left[A, B] + NewRight func(B) Right[A, B] + type Either interface + type Left struct + Value A + func (l Left[A, B]) DRest() data.Data[A] + func (l Left[A, B]) DValue() A + type Right struct + Value B + func (r Right[A, B]) DRest() data.Data[B] + func (r Right[A, B]) DValue() B + type Type struct + func NewType() Type[A, B] + func (t Type[A, B]) NewLeft(v A) Left[A, B] + func (t Type[A, B]) NewRight(v B) Right[A, B]