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>
20
+
static member ``<*>`` (f:seq<_>,x:seq<'T>,[<Optional>]_output:seq<'U>,[<Optional>]_mthd:Apply)= Seq.apply f x : seq<'U>
21
+
static member ``<*>`` (f:NonEmptySeq<_>,x:NonEmptySeq<'T>,[<Optional>]_output:NonEmptySeq<'U>,[<Optional>]_mthd:Apply)= NonEmptySeq.apply f x : NonEmptySeq<'U>
22
+
static member ``<*>`` (f:IEnumerator<_>,x:IEnumerator<'T>,[<Optional>]_output:IEnumerator<'U>,[<Optional>]_mthd:Apply)= Enumerator.map2 id f x : IEnumerator<'U>
23
+
static member ``<*>`` (f:list<_>,x:list<'T>,[<Optional>]_output:list<'U>,[<Optional>]_mthd:Apply)= List.apply f x : list<'U>
24
+
static member ``<*>`` (f:_ [],x:'T [],[<Optional>]_output:'U [],[<Optional>]_mthd:Apply)= Array.apply f x : 'U []
25
+
static member ``<*>`` (f:'r ->_ ,g:_ ->'T ,[<Optional>]_output:'r ->'U ,[<Optional>]_mthd:Apply)=fun x ->letf' = f x in f' (g x): 'U
26
+
// End Compatibility members
19
27
static member ``<*>`` (struct(f:Lazy<'T->'U>,x:Lazy<'T>),_output:Lazy<'U>,[<Optional>]_mthd:Apply)= Lazy.apply f x : Lazy<'U>
20
28
static member ``<*>`` (struct(f:seq<_>,x:seq<'T>),_output:seq<'U>,[<Optional>]_mthd:Apply)= Seq.apply f x : seq<'U>
21
29
static member ``<*>`` (struct(f:NonEmptySeq<_>,x:NonEmptySeq<'T>),_output:NonEmptySeq<'U>,[<Optional>]_mthd:Apply)= NonEmptySeq.apply f x : NonEmptySeq<'U>
@@ -26,10 +34,49 @@ type Apply =
26
34
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
27
35
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)
28
36
#if!FABLE_COMPILER
37
+
// Compatibility member:
38
+
static member ``<*>`` (f:Task<_>,x:Task<'T>,[<Optional>]_output:Task<'U>,[<Optional>]_mthd:Apply)= Task.apply f x : Task<'U>
39
+
29
40
static member ``<*>`` (struct(f:Task<_>,x:Task<'T>),_output:Task<'U>,[<Optional>]_mthd:Apply)= Task.apply f x : Task<'U>
30
41
#endif
31
42
32
43
#if!NET45 &&!NETSTANDARD2_0 &&!FABLE_COMPILER
44
+
// Compatibility members:
45
+
static member ``<*>`` (f:ValueTask<_>,x:ValueTask<'T>,[<Optional>]_output:ValueTask<'U>,[<Optional>]_mthd:Apply)= ValueTask.apply f x : ValueTask<'U>
46
+
static member ``<*>`` (f:Async<_>,x:Async<'T>,[<Optional>]_output:Async<'U>,[<Optional>]_mthd:Apply)= Async.apply f x : Async<'U>
47
+
static member ``<*>`` (f:option<_>,x:option<'T>,[<Optional>]_output:option<'U>,[<Optional>]_mthd:Apply)= Option.apply f x : option<'U>
48
+
static member ``<*>`` (f:voption<_>,x:voption<'T>,[<Optional>]_output:voption<'U>,[<Optional>]_mthd:Apply)= ValueOption.apply f x : voption<'U>
49
+
static member ``<*>`` (f:Result<_,'E>,x:Result<'T,'E>,[<Optional>]_output:Result<'b,'E>,[<Optional>]_mthd:Apply)= Result.apply f x : Result<'U,'E>
50
+
static member ``<*>`` (f:Choice<_,'E>,x:Choice<'T,'E>,[<Optional>]_output:Choice<'b,'E>,[<Optional>]_mthd:Apply)= Choice.apply f x : Choice<'U,'E>
51
+
static member ``<*>`` (f:Map<'Key,_>,x:Map<'Key,'T>,[<Optional>]_output:Map<'Key,'U>,[<Optional>]_mthd:Apply):Map<'Key,'U>= Map (seq{
52
+
for KeyValue(k, vf)in f do
53
+
match Map.tryFind k x with
54
+
| Some vx ->yield k, vf vx
55
+
|_->()})
56
+
static member ``<*>`` (f:Dictionary<'Key,_>,x:Dictionary<'Key,'T>,[<Optional>]_output:Dictionary<'Key,'U>,[<Optional>]_mthd:Apply):Dictionary<'Key,'U>=
57
+
letdct= Dictionary ()
58
+
for KeyValue(k, vf)in f do
59
+
match x.TryGetValue k with
60
+
|true, vx -> dct.Add (k, vf vx)
61
+
|_->()
62
+
dct
63
+
static member ``<*>`` (f:IDictionary<'Key,_>,x:IDictionary<'Key,'T>,[<Optional>]_output:IDictionary<'Key,'U>,[<Optional>]_mthd:Apply):IDictionary<'Key,'U>=
64
+
letdct= Dictionary ()
65
+
for KeyValue(k, vf)in f do
66
+
match x.TryGetValue k with
67
+
|true, vx -> dct.Add (k, vf vx)
68
+
|_->()
69
+
dct :> IDictionary<'Key,'U>
70
+
static member ``<*>`` (f:IReadOnlyDictionary<'Key,_>,x:IReadOnlyDictionary<'Key,'T>,[<Optional>]_output:IReadOnlyDictionary<'Key,'U>,[<Optional>]_mthd:Apply):IReadOnlyDictionary<'Key,'U>=
71
+
letdct= Dictionary ()
72
+
for KeyValue(k, vf)in f do
73
+
match x.TryGetValue k with
74
+
|true, vx -> dct.Add (k, vf vx)
75
+
|_->()
76
+
dct :> IReadOnlyDictionary<'Key,'U>
77
+
78
+
// End Compatibility members
79
+
33
80
static member ``<*>`` (struct(f:ValueTask<_>,x:ValueTask<'T>),_output:ValueTask<'U>,[<Optional>]_mthd:Default2)= ValueTask.apply f x : ValueTask<'U>
34
81
#endif
35
82
static member ``<*>`` (struct(f:Async<_>,x:Async<'T>),_output:Async<'U>,[<Optional>]_mthd:Apply)= Async.apply f x : Async<'U>
@@ -74,8 +121,13 @@ type Apply =
74
121
dct :> IReadOnlyDictionary<'Key,'U>
75
122
76
123
#if!FABLE_COMPILER
124
+
// Compatibility member:
125
+
static member ``<*>`` (f:Expr<'T->'U>,x:Expr<'T>,[<Optional>]_output:Expr<'U>,[<Optional>]_mthd:Apply)= Expr.Cast<'U>(Expr.Application (f, x))
77
126
static member ``<*>`` (struct(f:Expr<'T->'U>,x:Expr<'T>),_output:Expr<'U>,[<Optional>]_mthd:Apply)= Expr.Cast<'U>(Expr.Application (f, x))
78
127
#endif
128
+
// Compatibility member:
129
+
static member ``<*>`` (f:('T->'U) ResizeArray,x:'T ResizeArray,[<Optional>]_output:'U ResizeArray,[<Optional>]_mthd:Apply)= ResizeArray.apply f x : 'U ResizeArray
130
+
79
131
static member ``<*>`` (struct(f:('T->'U) ResizeArray,x:'T ResizeArray),_output:'U ResizeArray,[<Optional>]_mthd:Apply)= ResizeArray.apply f x : 'U ResizeArray
80
132
81
133
static member inlineInvoke(f:'``Applicative<'T->'U>``)(x:'``Applicative<'T>``):'``Applicative<'U>`` =
0 commit comments