underscore/tuple.go
2024-11-21 05:19:03 +01:00

8 lines
161 B
Go

package underscore
// Tuple is a generic tuple type.
// It is used to return multiple values from a function.
type Tuple[L, R any] struct {
Left L
Right R
}