value

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InRange

func InRange(v1 IntRange, v2 int) bool

func NewDRange

func NewDRange(ranges []IntRange) dRange

func NewIntValues

func NewIntValues(values []int) intValues

Types

type IntRange

type IntRange struct {
	// contains filtered or unexported fields
}

func NewIntRange

func NewIntRange(min int, minOpen bool, max int, maxOpen bool) IntRange

func SectRangeWithRange

func SectRangeWithRange(v1, v2 IntRange) (IntRange, error)

func (IntRange) Diff

func (v IntRange) Diff(other Value) Value

func (IntRange) Final

func (v IntRange) Final() bool

func (IntRange) Sect

func (v IntRange) Sect(other Value) Value

func (IntRange) String

func (v IntRange) String() string

func (IntRange) Subsumes

func (v IntRange) Subsumes(other Value) bool

type Value

type Value interface {
	Subsumes(aValue Value) bool

	Sect(other Value) Value

	Diff(other Value) Value

	Final() bool
	String() string
	// contains filtered or unexported methods
}

func SectDRangeWithDRange

func SectDRangeWithDRange(v1, v2 dRange) (Value, error)

func SectDRangeWithSet

func SectDRangeWithSet(v1 dRange, v2 intValues) Value

func SectRangeWithDRange

func SectRangeWithDRange(v1 IntRange, v2 dRange) Value

func SectRangeWithSet

func SectRangeWithSet(v1 IntRange, v2 intValues) Value

func SectSetWithSet

func SectSetWithSet(v1, v2 intValues) Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL