Documentation ¶
Index ¶
Constants ¶
View Source
const ErrBadGrid = lerr.Str("args must be multiple of 3")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Number ¶
type Number interface { constraints.Float | constraints.Integer }
Number is any float or integer (signed or unsigned).
type Range ¶
type Range[T Number] struct { Start, End, Step T }
Range with a Start, End and Step. End is exclusive.
func Include ¶
Include creates a new range making sure that end is included but that it is the last value in the range.
func (*Range[T]) AtIdx ¶
AtIdx returns the value at the given step index. This fulfills a portion of the list.List interface.
Click to show internal directories.
Click to hide internal directories.