Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Number ¶
type Number interface { constraints.Integer }
type Range ¶
type Range[T Number] struct { Start T End T }
func GetIntegerRanges ¶
GetIntegerRanges generates a list of ranges found when given a list of integers. Duplicate integers are removed. Integers are sorted before generation.
For example {1, 2, 3} returns []{Range{ Start:1, End:3 }}
Click to show internal directories.
Click to hide internal directories.