|
2 | 2 | //
|
3 | 3 | // Tuple methods:
|
4 | 4 | //
|
5 |
| -// - Len returns the number of values held by the tuple. |
6 |
| -// - Values returns the values held by the tuple. |
7 |
| -// - Array returns an array of the tuple values. |
8 |
| -// - Slice returns a slice of the tuple values. |
9 |
| -// - String returns the string representation of the tuple. |
10 |
| -// - GoString returns a Go-syntax representation of the tuple. |
| 5 | +// * Len returns the number of values held by the tuple. |
| 6 | +// * Values returns the values held by the tuple. |
| 7 | +// * Array returns an array of the tuple values. |
| 8 | +// * Slice returns a slice of the tuple values. |
| 9 | +// * String returns the string representation of the tuple. |
| 10 | +// * GoString returns a Go-syntax representation of the tuple. |
11 | 11 | //
|
12 | 12 | // Tuple creation functions:
|
13 | 13 | //
|
14 |
| -// - New<N> creates a new tuple holding N generic values. |
15 |
| -// - FromArray<N> returns a tuple from an array of length N. |
16 |
| -// If any of the values can not be converted to the generic type, an error is returned. |
17 |
| -// - FromArray<N>X returns a tuple from an array of length N. |
18 |
| -// If any of the values can not be converted to the generic type, the function panics. |
19 |
| -// - FromSlice<N> returns a tuple from a slice of length N. |
20 |
| -// 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. |
21 |
| -// - FromSlice<N>X returns a tuple from a slice of length N. |
22 |
| -// 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. |
| 14 | +// * New<N> creates a new tuple holding N generic values. |
| 15 | +// * FromArray<N> returns a tuple from an array of length N. |
| 16 | +// If any of the values can not be converted to the generic type, an error is returned. |
| 17 | +// * FromArray<N>X returns a tuple from an array of length N. |
| 18 | +// If any of the values can not be converted to the generic type, the function panics. |
| 19 | +// * FromSlice<N> returns a tuple from a slice of length N. |
| 20 | +// 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. |
| 21 | +// * FromSlice<N>X returns a tuple from a slice of length N. |
| 22 | +// 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. |
23 | 23 | //
|
24 | 24 | // Tuple comparison functions:
|
25 | 25 | //
|
26 |
| -// - Equal<N> returns whether the host tuple is equal to the other tuple. |
27 |
| -// - Compare<N> returns whether the host tuple is semantically less than, equal to, or greater than the guest tuple. |
28 |
| -// - LessThan<N> returns whether the host tuple is semantically less than the guest tuple. |
29 |
| -// - LessOrEqual<N> returns whether the host tuple is semantically less than or equal to the guest tuple. |
30 |
| -// - GreaterThan<N> returns whether the host tuple is semantically greater than the guest tuple. |
31 |
| -// - GreaterOrEqual<N> returns whether the host tuple is semantically greater than or equal to the guest tuple. |
| 26 | +// * Equal<N> returns whether the host tuple is equal to the other tuple. |
| 27 | +// * Compare<N> returns whether the host tuple is semantically less than, equal to, or greater than the guest tuple. |
| 28 | +// * LessThan<N> returns whether the host tuple is semantically less than the guest tuple. |
| 29 | +// * LessOrEqual<N> returns whether the host tuple is semantically less than or equal to the guest tuple. |
| 30 | +// * GreaterThan<N> returns whether the host tuple is semantically greater than the guest tuple. |
| 31 | +// * GreaterOrEqual<N> returns whether the host tuple is semantically greater than or equal to the guest tuple. |
32 | 32 | //
|
33 | 33 | // Tuple comparison functions may have an "C" or "E" suffix as overload with additional supported type constraints.
|
34 | 34 | // Comparison functions ending with "C" accept the "Comparable" constraint.
|
|
0 commit comments