Top 1.1% dependent packages on proxy.golang.org
Top 1.5% dependent repos on proxy.golang.org
Top 9.9% forks on proxy.golang.org
proxy.golang.org : github.com/barweiss/go-tuple
package tuple defines tuple types that can hold multiple values of varying types. Currently, tuples with up to 9 values are supported. Tuple methods: * Len returns the number of values held by the tuple. * Values returns the values held by the tuple. * Array returns an array of the tuple values. * Slice returns a slice of the tuple values. * String returns the string representation of the tuple. * GoString returns a Go-syntax representation of the tuple. Tuple creation functions: Tuple comparison functions: * Equal<N> returns whether the host tuple is equal to the other tuple. * Compare<N> returns whether the host tuple is semantically less than, equal to, or greater than the guest tuple. * LessThan<N> returns whether the host tuple is semantically less than the guest tuple. * LessOrEqual<N> returns whether the host tuple is semantically less than or equal to the guest tuple. * GreaterThan<N> returns whether the host tuple is semantically greater than the guest tuple. * GreaterOrEqual<N> returns whether the host tuple is semantically greater than or equal to the guest tuple. Tuple comparison functions may have an "C" or "E" suffix as overload with additional supported type constraints. Comparison functions ending with "C" accept the "Comparable" constraint. Comparison functions ending with "E" accept the "Equalable contraint.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/barweiss/go-tuple
License: MIT
Latest release: almost 2 years ago
First release: over 3 years ago
Namespace: github.com/barweiss
Dependent packages: 26
Dependent repositories: 12
Stars: 56 on GitHub
Forks: 3 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago