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 inlineInvokeOnInstance(mapping:'K->'T->'Key)(source:'``Indexable<'T>``):'``Indexable<'U>`` =(^``Indexable<'T>``:(static memberMapIndexed:_*_->_) source, mapping):^``Indexable<'U>``
81
81
82
-
static member inlineMapIndexed(x:seq<'T>,f:int->'T->'U,_impl:Default2)= x |> Seq.mapi f : seq<'U>
82
+
typeMapIndexedwith
83
+
static member inlineMapIndexed(x:seq<'T>,f:int ->'T ->'U,_impl:Default3)= x |> Seq.mapi f : seq<'U>
84
+
static member inlineMapIndexed(x:IReadOnlyDictionary<'Key,'T>,f:'Key ->'T ->'U,_impl:Default2)= x |> IReadOnlyDictionary.mapi f : IReadOnlyDictionary<'Key, 'U>
85
+
static member inlineMapIndexed(_:^twhen^t:null and ^t:struct,_:'K->'T->'U,_mthd:Default2)=()
83
86
static member inlineMapIndexed(x:^``I<'T>``,f:'K->'T->'U ,_impl:Default1):'``I<'U>`` = MapIndexed.InvokeOnInstance f x
84
87
static member inlineMapIndexed(_:^twhen^t:null and ^t:struct,_:'K->'T->'U,_mthd:Default1)=()
static member inlineInvokeOnInstance(mapping:'K->'T->'U option)(source:'``Indexable<'T>``):'``Indexable<'U>`` =(^``Indexable<'T>``:(static memberChooseIndexed:_*_->_) source, mapping):^``Indexable<'U>``
99
102
100
-
static member inlineChooseIndexed(x:seq<'T>,f:int->'T->'U option,_impl:Default2)= x |> Seq.choosei f : seq<'U>
103
+
typeChooseIndexedwith
104
+
static member inlineChooseIndexed(x:seq<'T>,f:int->'T ->'U option,_impl:Default3)= x |> Seq.choosei f : seq<'U>
105
+
static member inlineChooseIndexed(x:IReadOnlyDictionary<'Key,'T>,f:'Key->'T ->'U option,_impl:Default2)= x |> IReadOnlyDictionary.choose f : IReadOnlyDictionary<'Key, 'U>
106
+
static member inlineChooseIndexed(_:^twhen^t:null and ^t:struct,_:'K->'T->'U option,_mthd:Default2)=()
101
107
static member inlineChooseIndexed(x:^``I<'T>``,f:'K->'T->'U option,_impl:Default1):'``I<'U>`` = ChooseIndexed.InvokeOnInstance f x
102
108
static member inlineChooseIndexed(_:^twhen^t:null and ^t:struct,_:'K->'T->'U option,_mthd:Default1)=()
103
109
@@ -113,7 +119,10 @@ type IterateIndexed =
113
119
call (Unchecked.defaultof<IterateIndexed>, source, action): unit
114
120
static member inlineInvokeOnInstance(action:'K->'T->unit)(source:'``Indexable<'T>``)=(^``Indexable<'T>``:(static memberIterateIndexed:_*_->unit) source, action)
115
121
116
-
static member inlineIterateIndexed(x:seq<'T>,f:int->'T->unit ,_impl:Default2)= Seq.iteri f x
122
+
typeIterateIndexedwith
123
+
static member inlineIterateIndexed(x:seq<'T>,f:int ->'T->unit,_impl:Default3)= Seq.iteri f x
124
+
static member inlineIterateIndexed(x:IReadOnlyDictionary<'Key,'T>,f:'Key ->'T->unit,_impl:Default2)= IReadOnlyDictionary.iter f x
125
+
static member inlineIterateIndexed(_:^twhen^t:null and ^t:struct,_:'K->'T->'U,_mthd:Default2)=()
117
126
static member inlineIterateIndexed(x:^``I<'T>``,f:'K->'T->unit ,_impl:Default1)= IterateIndexed.InvokeOnInstance f x
118
127
static member inlineIterateIndexed(_:^twhen^t:null and ^t:struct,_:'K->'T->'U,_mthd:Default1)=()
static member inlineInvokeOnInstance(folder:'State->'Key->'T->'State)(state:'State)(source:'``Indexable<'T>``):'State =(^``Indexable<'T>``:(static memberFoldIndexed:_*_*_->_) source, folder, state): 'State
133
142
134
-
static member inlineFoldIndexed(x:seq<_>,f:'State->int->'T->'State ,z:'State,_impl:Default2)= x |> Seq.fold (fun(p,i)t->(f p i t, i +1))(z,0)|> fst
143
+
typeFoldIndexedwith
144
+
static member inlineFoldIndexed(x:seq<_>,f:'State->int->'T->'State ,z:'State,_impl:Default3)= x |> Seq.fold (fun(p,i)t->(f p i t, i +1))(z,0)|> fst
145
+
static memberFoldIndexed(x:IReadOnlyDictionary<'Key,'T>,f,z,_impl:Default2)= IReadOnlyDictionary.fold f z x
146
+
static member inlineFoldIndexed(_:^twhen^t:null and ^t:struct,_:'State->'Key->'T->'State,_:'S,_mthd:Default2)=()
135
147
static member inlineFoldIndexed(x:^``I<'T>``,f:'State->'Key->'T->'State ,z:'State,_impl:Default1):'State = FoldIndexed.InvokeOnInstance f z x
136
148
static member inlineFoldIndexed(_:^twhen^t:null and ^t:struct,_:'State->'Key->'T->'State,_:'S,_mthd:Default1)=()
137
149
@@ -147,16 +159,22 @@ type TraverseIndexed =
147
159
letinsert_f k x ys = Map.Invoke (Map.add k)(f k x)<*> ys
148
160
Map.foldBack insert_f t (result Map.empty)
149
161
150
-
static member inlineInvokeOnInstance(f:'Key ->'T ->'``Functor<'U>``)(t:'``Indexable<'T>``):'``Functor<'Indexable<'U>>`` =(^``Indexable<'T>``:(static memberTraverseIndexed:_*_->_) t,f): '``Functor<'Indexable<'U>>``
151
-
152
-
static member inlineTraverseIndexed(t:seq<'T>,f:int ->'T ->'``Functor<'U>``,[<Optional>]_output:'``Functor<seq<'U>>``,[<Optional>]_impl:Default2):'``Functor<seq<'U>>`` = Traverse.Invoke (fun(i,x)-> f i x)(Seq.indexed t)
153
-
static member inlineTraverseIndexed(t:^``I<'T>``,f:'Index ->'T ->'``Functor<'U>``,[<Optional>]_output:'``Functor<'I<'U>>``,[<Optional>]_impl:Default1):'``Functor<'I<'U>>`` = TraverseIndexed.InvokeOnInstance f t : '``Functor<'I<'U>>``
154
-
static member inlineTraverseIndexed(_:^twhen^t:null and ^t:struct,_:'Index ->'T ->'``Functor<'U>``,_:'R,_mthd:Default1)= id
155
162
156
163
static member inlineInvoke(f:'Key ->'T ->'``Functor<'U>``)(t:'``Indexable<'T>``):'``Functor<'Indexable<'U>>`` =
157
164
let inlinecall_3(a:^a,b:^b,c:^c,f)=((^aor^bor^c):(static memberTraverseIndexed:_*_*_*_->_) b, f, c, a)
158
165
let inlinecall(a:'a,b:'b,f)= call_3 (a, b, Unchecked.defaultof<'r>, f): 'r
159
166
call (Unchecked.defaultof<TraverseIndexed>, t, f)
167
+
static member inlineInvokeOnInstance(f:'Key ->'T ->'``Functor<'U>``)(t:'``Indexable<'T>``):'``Functor<'Indexable<'U>>`` =(^``Indexable<'T>``:(static memberTraverseIndexed:_*_->_) t,f): '``Functor<'Indexable<'U>>``
168
+
169
+
typeTraverseIndexedwith
170
+
static member inlineTraverseIndexed(t:seq<'T>,f:int ->'T ->'``Functor<'U>``,[<Optional>]_output:'``Functor<seq<'U>>``,[<Optional>]_impl:Default3):'``Functor<seq<'U>>`` = Traverse.Invoke (fun(i,x)-> f i x)(Seq.indexed t)
171
+
172
+
static member inlineTraverseIndexed(t:IReadOnlyDictionary<'Key,'T>,f:'Key ->'T ->'``Functor<'U>``,[<Optional>]_output:'``Functor<seq<'U>>``,[<Optional>]_impl:Default2):'``Functor<seq<'U>>`` =
173
+
letinsert_f k x ys = Map.Invoke (IReadOnlyDictionary.add k)(f k x)<*> ys
174
+
IReadOnlyDictionary.foldBack insert_f t (result IReadOnlyDictionary.empty)
175
+
static member inlineTraverseIndexed(t:^``I<'T>``,f:'Index ->'T ->'``Functor<'U>``,[<Optional>]_output:'``Functor<'I<'U>>``,[<Optional>]_impl:Default1):'``Functor<'I<'U>>`` = TraverseIndexed.InvokeOnInstance f t : '``Functor<'I<'U>>``
176
+
177
+
static member inlineTraverseIndexed(_:^twhen^t:null and ^t:struct,_:'Index ->'T ->'``Functor<'U>``,_:'R,_mthd:Default1)= id
0 commit comments