Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Diffabble ¶
type Diffabble[P any, StepT any] interface { Add(a P, step StepT) P Less(a, b P) bool Equal(a, b P) bool Zero() P Neg(step StepT) StepT }
Diffabble is a named type of a slice of an implementation of Segment that can be passed into Difference() as diff D
type Segment ¶
type Segment[U any] interface { StartVal() U EndVal() U NewSegment(start, end U) Segment[U] String() string }
Segment represents a range with inclusive Start/End points of type U.
Click to show internal directories.
Click to hide internal directories.