Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OrdOption (0.11 sec)

  1. test/typeparam/issue50485.dir/main.go

    package main
    
    import (
    	"./a"
    )
    
    func main() {
    	_ = a.OrdOption(a.Given[int]())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 82 bytes
    - Viewed (0)
  2. test/typeparam/issue50485.dir/a.go

    }
    
    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]] {
    	return LessFunc[Option[T]](func(t1 Option[T], t2 Option[T]) bool {
    		if !t1.IsDefined() && !t2.IsDefined() {
    			return false
    		}
    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