- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Applicative1 (0.1 sec)
-
test/typeparam/issue50485.dir/a.go
func (r ApplicativeFunctor1[H, HT, A, R]) ApOption(a Option[A]) Option[R] { return Ap(r.fn, a) } func (r ApplicativeFunctor1[H, HT, A, R]) Ap(a A) Option[R] { return r.ApOption(Some(a)) } func Applicative1[A, R any](fn Func1[A, R]) ApplicativeFunctor1[Nil, Nil, A, R] { return ApplicativeFunctor1[Nil, Nil, A, R]{Some(Empty()), Some(fn)} } type ApplicativeFunctor2[H Header[HT], HT, A1, A2, R any] struct { h Option[H]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 4.4K bytes - Viewed (0) -
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)