Documentation ¶
Index ¶
- type Range
- func Exclude[N constraints.Integer](ranges []Range[N], targetRanges []Range[N]) []Range[N]
- func Merge[N constraints.Integer](ranges []Range[N]) (mergedRanges []Range[N])
- func New[N constraints.Integer](start N, end N) Range[N]
- func NewSingle[N constraints.Integer](index N) Range[N]
- func Revert[N constraints.Integer](start, end N, ranges []Range[N]) (revertedRanges []Range[N])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Range ¶
type Range[N comparable] struct { Start N End N }
func Exclude ¶
func Exclude[N constraints.Integer](ranges []Range[N], targetRanges []Range[N]) []Range[N]
func New ¶
func New[N constraints.Integer](start N, end N) Range[N]
func NewSingle ¶
func NewSingle[N constraints.Integer](index N) Range[N]
Click to show internal directories.
Click to hide internal directories.