You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static member ``<*>`` (f:Lazy<'T->'U>,x:Lazy<'T>,[<Optional>]_output:Lazy<'U>,[<Optional>]_mthd:Apply)= Lazy.apply f x : Lazy<'U>
22
-
static member ``<*>`` (f:seq<_>,x:seq<'T>,[<Optional>]_output:seq<'U>,[<Optional>]_mthd:Apply)= Seq.apply f x : seq<'U>
23
-
static member ``<*>`` (f:IEnumerator<_>,x:IEnumerator<'T>,[<Optional>]_output:IEnumerator<'U>,[<Optional>]_mthd:Apply)= Enumerator.map2 id f x : IEnumerator<'U>
24
-
static member ``<*>`` (f:list<_>,x:list<'T>,[<Optional>]_output:list<'U>,[<Optional>]_mthd:Apply)= List.apply f x : list<'U>
25
-
static member ``<*>`` (f:_ [],x:'T [],[<Optional>]_output:'U [],[<Optional>]_mthd:Apply)= Array.apply f x : 'U []
26
-
static member ``<*>`` (f:'r ->_ ,g:_ ->'T ,[<Optional>]_output:'r ->'U ,[<Optional>]_mthd:Apply)=fun x ->letf' = f x in f' (g x): 'U
27
-
static member inline ``<*>`` ((a:'Monoid,f),(b:'Monoid,x:'T),[<Optional>]_output:'Monoid * 'U ,[<Optional>]_mthd: Apply)=(Plus.Invoke a b, f x): 'Monoid *'U
28
-
static member inline ``<*>`` (struct(a:'Monoid,f),struct(b:'Monoid,x:'T),[<Optional>]_output:struct ('Monoid * 'U),[<Optional>]_mthd:Apply)=struct(Plus.Invoke a b, f x):struct('Monoid * 'U)
18
+
static member ``<*>`` (struct(f:Lazy<'T->'U>,x:Lazy<'T>),_output:Lazy<'U>,[<Optional>]_mthd:Apply)= Lazy.apply f x : Lazy<'U>
19
+
static member ``<*>`` (struct(f:seq<_>,x:seq<'T>),_output:seq<'U>,[<Optional>]_mthd:Apply)= Seq.apply f x : seq<'U>
20
+
static member ``<*>`` (struct(f:IEnumerator<_>,x:IEnumerator<'T>),_output:IEnumerator<'U>,[<Optional>]_mthd:Apply)= Enumerator.map2 id f x : IEnumerator<'U>
21
+
static member ``<*>`` (struct(f:list<_>,x:list<'T>),_output:list<'U>,[<Optional>]_mthd:Apply)= List.apply f x : list<'U>
22
+
static member ``<*>`` (struct(f:_ [],x:'T []),_output:'U [],[<Optional>]_mthd:Apply)= Array.apply f x : 'U []
23
+
static member ``<*>`` (struct(f:'r ->_ ,g:_ ->'T ),_output:'r ->'U ,[<Optional>]_mthd:Apply)=fun x ->letf' = f x in f' (g x): 'U
24
+
static member inline ``<*>`` (struct((a:'Monoid,f),(b:'Monoid,x:'T)),_output:'Monoid * 'U ,[<Optional>]_mthd: Apply)=(Plus.Invoke a b, f x): 'Monoid *'U
25
+
static member inline ``<*>`` (struct(struct(a:'Monoid,f),struct(b:'Monoid,x:'T)),_output:struct ('Monoid * 'U),[<Optional>]_mthd:Apply)=struct(Plus.Invoke a b, f x):struct('Monoid * 'U)
29
26
#if!FABLE_COMPILER
30
-
static member ``<*>`` (f:Task<_>,x:Task<'T>,[<Optional>]_output:Task<'U>,[<Optional>]_mthd:Apply)= Task.apply f x : Task<'U>
27
+
static member ``<*>`` (struct(f:Task<_>,x:Task<'T>),_output:Task<'U>,[<Optional>]_mthd:Apply)= Task.apply f x : Task<'U>
31
28
#endif
32
-
#ifNETSTANDARD2_1&&!FABLE_COMPILER
33
-
static member ``<*>`` (f:ValueTask<_>,x:ValueTask<'T>,[<Optional>]_output:ValueTask<'U>,[<Optional>]_mthd:Apply)= ValueTask.apply f x : ValueTask<'U>
29
+
#if!NET45 &&!NETSTANDARD2_0&&!FABLE_COMPILER
30
+
static member ``<*>`` (struct(f:ValueTask<_>,x:ValueTask<'T>),_output:ValueTask<'U>,[<Optional>]_mthd:Default2)= ValueTask.apply f x : ValueTask<'U>
34
31
#endif
35
-
static member ``<*>`` (f:Async<_>,x:Async<'T>,[<Optional>]_output:Async<'U>,[<Optional>]_mthd:Apply)= Async.apply f x : Async<'U>
36
-
static member ``<*>`` (f:option<_>,x:option<'T>,[<Optional>]_output:option<'U>,[<Optional>]_mthd:Apply)= Option.apply f x : option<'U>
37
-
static member ``<*>`` (f:voption<_>,x:voption<'T>,[<Optional>]_output:voption<'U>,[<Optional>]_mthd:Apply)= ValueOption.apply f x : voption<'U>
38
-
static member ``<*>`` (f:Result<_,'E>,x:Result<'T,'E>,[<Optional>]_output:Result<'b,'E>,[<Optional>]_mthd:Apply)= Result.apply f x : Result<'U,'E>
39
-
static member ``<*>`` (f:Choice<_,'E>,x:Choice<'T,'E>,[<Optional>]_output:Choice<'b,'E>,[<Optional>]_mthd:Apply)= Choice.apply f x : Choice<'U,'E>
40
-
static member inline ``<*>`` (KeyValue(a:'Key,f),KeyValue(b:'Key,x:'T),[<Optional>]_output:KeyValuePair<'Key,'U>,[<Optional>]_mthd:Apply):KeyValuePair<'Key,'U>= KeyValuePair (Plus.Invoke a b, f x)
41
-
42
-
static member ``<*>`` (f:Map<'Key,_>,x:Map<'Key,'T>,[<Optional>]_output:Map<'Key,'U>,[<Optional>]_mthd:Apply):Map<'Key,'U>= Map (seq{
32
+
static member ``<*>`` (struct(f:Async<_>,x:Async<'T>),_output:Async<'U>,[<Optional>]_mthd:Apply)= Async.apply f x : Async<'U>
33
+
static member ``<*>`` (struct(f:option<_>,x:option<'T>),_output:option<'U>,[<Optional>]_mthd:Apply)= Option.apply f x : option<'U>
34
+
static member ``<*>`` (struct(f:voption<_>,x:voption<'T>),_output:voption<'U>,[<Optional>]_mthd:Apply)= ValueOption.apply f x : voption<'U>
35
+
static member ``<*>`` (struct(f:Result<_,'E>,x:Result<'T,'E>),_output:Result<'b,'E>,[<Optional>]_mthd:Apply)= Result.apply f x : Result<'U,'E>
36
+
static member ``<*>`` (struct(f:Choice<_,'E>,x:Choice<'T,'E>),_output:Choice<'b,'E>,[<Optional>]_mthd:Apply)= Choice.apply f x : Choice<'U,'E>
37
+
static member inline ``<*>`` (struct(KeyValue(a:'Key,f),KeyValue(b:'Key,x:'T)),_output:KeyValuePair<'Key,'U>,[<Optional>]_mthd:Default2):KeyValuePair<'Key,'U>= KeyValuePair (Plus.Invoke a b, f x)
38
+
static member inline ``<*>`` (struct(f:KeyValuePair2<_,_>,x:KeyValuePair2<_,'T>),_output:KeyValuePair2<_,'U>,[<Optional>]_mthd:Default2):KeyValuePair2<'Key,'U>=
39
+
leta,b = f.Key, x.Key
40
+
letf,x = f.Value, x.Value
41
+
KeyValuePair2 (Plus.Invoke a b, f x)
42
+
43
+
static member ``<*>`` (struct(f:Map<'Key,_>,x:Map<'Key,'T>),_output:Map<'Key,'U>,[<Optional>]_mthd:Apply):Map<'Key,'U>= Map (seq{
43
44
for KeyValue(k, vf)in f do
44
45
match Map.tryFind k x with
45
46
| Some vx ->yield k, vf vx
46
47
|_->()})
47
48
48
-
static member ``<*>`` (f:Dictionary<'Key,_>,x:Dictionary<'Key,'T>,[<Optional>]_output:Dictionary<'Key,'U>,[<Optional>]_mthd:Apply):Dictionary<'Key,'U>=
49
+
static member ``<*>`` (struct(f:Dictionary<'Key,_>,x:Dictionary<'Key,'T>),_output:Dictionary<'Key,'U>,[<Optional>]_mthd:Apply):Dictionary<'Key,'U>=
49
50
letdct= Dictionary ()
50
51
for KeyValue(k, vf)in f do
51
52
match x.TryGetValue k with
52
53
|true, vx -> dct.Add (k, vf vx)
53
54
|_->()
54
55
dct
55
56
56
-
static member ``<*>`` (f:IDictionary<'Key,_>,x:IDictionary<'Key,'T>,[<Optional>]_output:IDictionary<'Key,'U>,[<Optional>]_mthd:Apply):IDictionary<'Key,'U>=
57
+
static member ``<*>`` (struct(f:IDictionary<'Key,_>,x:IDictionary<'Key,'T>),_output:IDictionary<'Key,'U>,[<Optional>]_mthd:Apply):IDictionary<'Key,'U>=
57
58
letdct= Dictionary ()
58
59
for KeyValue(k, vf)in f do
59
60
match x.TryGetValue k with
60
61
|true, vx -> dct.Add (k, vf vx)
61
62
|_->()
62
63
dct :> IDictionary<'Key,'U>
63
64
64
-
static member ``<*>`` (f:IReadOnlyDictionary<'Key,_>,x:IReadOnlyDictionary<'Key,'T>,[<Optional>]_output:IReadOnlyDictionary<'Key,'U>,[<Optional>]_mthd:Apply):IReadOnlyDictionary<'Key,'U>=
65
+
static member ``<*>`` (struct(f:IReadOnlyDictionary<'Key,_>,x:IReadOnlyDictionary<'Key,'T>),_output:IReadOnlyDictionary<'Key,'U>,[<Optional>]_mthd:Apply):IReadOnlyDictionary<'Key,'U>=
65
66
letdct= Dictionary ()
66
67
for KeyValue(k, vf)in f do
67
68
match x.TryGetValue k with
@@ -70,23 +71,29 @@ type Apply =
70
71
dct :> IReadOnlyDictionary<'Key,'U>
71
72
72
73
#if!FABLE_COMPILER
73
-
static member ``<*>`` (f:Expr<'T->'U>,x:Expr<'T>,[<Optional>]_output:Expr<'U>,[<Optional>]_mthd:Apply)= Expr.Cast<'U>(Expr.Application (f, x))
74
+
static member ``<*>`` (struct(f:Expr<'T->'U>,x:Expr<'T>),_output:Expr<'U>,[<Optional>]_mthd:Apply)= Expr.Cast<'U>(Expr.Application (f, x))
74
75
#endif
75
-
static member ``<*>`` (f:('T->'U) ResizeArray,x:'T ResizeArray,[<Optional>]_output:'U ResizeArray,[<Optional>]_mthd:Apply)= ResizeArray.apply f x : 'U ResizeArray
76
+
static member ``<*>`` (struct(f:('T->'U) ResizeArray,x:'T ResizeArray),_output:'U ResizeArray,[<Optional>]_mthd:Apply)= ResizeArray.apply f x : 'U ResizeArray
76
77
77
78
static member inlineInvoke(f:'``Applicative<'T->'U>``)(x:'``Applicative<'T>``):'``Applicative<'U>`` =
78
79
let inlinecall(mthd :^M,input1:^I1,input2:^I2,output:^R)=
79
-
((^Mor^I1or^I2or^R):(static member ``<*>`` :_*_*_*_ -> _)input1,input2,output,mthd)
80
+
((^Mor^I1or^I2or^R):(static member ``<*>`` :struct (_*_)* _ *_ -> _)(struct(input1,input2)),output,mthd)
static member inline ``<*>`` (struct(f:'``Monad<'T->'U>`` , x: '``Monad<'T>`` ),_output:'``Monad<'U>`` ,[<Optional>]_mthd:Default2):'``Monad<'U>`` = Bind.InvokeOnInstance f (fun(x1: 'T->'U)-> Bind.InvokeOnInstance x (fun x2 -> Return.InvokeOnInstance (x1 x2)))
92
+
static member inline ``<*>`` (struct(_:^twhen^t:null and ^t:struct,_:^uwhen^u:null and ^u:struct),_output:^rwhen^r:null and ^r:struct,_mthd:Default1)= id
0 commit comments