Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix package documentation to look better in go reference #14

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@
//
// 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.
// * 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:
//
// - New<N> creates a new tuple holding N generic values.
// - FromArray<N> returns a tuple from an array of length N.
// If any of the values can not be converted to the generic type, an error is returned.
// - FromArray<N>X returns a tuple from an array of length N.
// If any of the values can not be converted to the generic type, the function panics.
// - FromSlice<N> returns a tuple from a slice of length N.
// If the length of the slice doesn't match, or any of the values can not be converted to the generic type, an error is returned.
// - FromSlice<N>X returns a tuple from a slice of length N.
// If the length of the slice doesn't match, or any of the values can not be converted to the generic type, the function panics.
// * New<N> creates a new tuple holding N generic values.
// * FromArray<N> returns a tuple from an array of length N.
// If any of the values can not be converted to the generic type, an error is returned.
// * FromArray<N>X returns a tuple from an array of length N.
// If any of the values can not be converted to the generic type, the function panics.
// * FromSlice<N> returns a tuple from a slice of length N.
// If the length of the slice doesn't match, or any of the values can not be converted to the generic type, an error is returned.
// * FromSlice<N>X returns a tuple from a slice of length N.
// If the length of the slice doesn't match, or any of the values can not be converted to the generic type, the function panics.
//
// 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.
// * 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.
Expand Down