- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Applicative2 (0.11 sec)
-
test/typeparam/issue50264.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main type hello struct{} func main() { _ = Some(hello{}) res := Applicative2(func(a int, b int) int { return 0 }) _ = res } type NoneType[T any] struct{} func (r NoneType[T]) Recover() any { return nil } type Func2[A1, A2, R any] func(a1 A1, a2 A2) R
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 822 bytes - Viewed (0) -
test/typeparam/issue50485.dir/a.go
} func (r ApplicativeFunctor2[H, HT, A1, A2, R]) Ap(a A1) ApplicativeFunctor1[Cons[A1, H], A1, A2, R] { return r.ApOption(Some(a)) } func Applicative2[A1, A2, R any](fn Func2[A1, A2, R]) ApplicativeFunctor2[Nil, Nil, A1, A2, R] { return ApplicativeFunctor2[Nil, Nil, A1, A2, R]{Some(Empty()), Some(fn.Curried())} } func OrdOption[T any](m Ord[T]) Ord[Option[T]] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 4.4K bytes - Viewed (0)