Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ApplicativeFunctor2 (1.14 sec)

  1. test/typeparam/issue50264.go

    }
    
    //go:noinline
    func Some2[T any](v T) any {
    	return v
    }
    
    type Nil struct{}
    
    type ApplicativeFunctor2[H, HT, A1, A2, R any] struct {
    	h any
    }
    
    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(Nil{})}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 822 bytes
    - Viewed (0)
  2. test/typeparam/issue50485.dir/a.go

    	})
    
    	return ApplicativeFunctor1[Cons[A1, H], A1, A2, R]{nh, Ap(r.fn, a)}
    }
    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())}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top