- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for _NewPair (0.12 sec)
-
test/typeparam/combine.go
return t, false } return join(t1, t2), true } } type Pair[A, B any] struct { A A B B } func _NewPair[A, B any](a A, b B) Pair[A, B] { return Pair[A, B]{a, b} } func Combine2[A, B any](ga Gen[A], gb Gen[B]) Gen[Pair[A, B]] { return Combine(ga, gb, _NewPair[A, B]) } func main() { var g1 Gen[int] = func() (int, bool) { return 3, true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.5K bytes - Viewed (0)