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(source1:'``ZipShortestCollection<'T1>``)(source2:'``ZipShortestCollection<'T2>``):'``ZipShortestCollection<'T1*'T2>`` =
static member inlineZipShortest((_:^twhen^t:null and ^t:struct,_:^uwhen^u:null and ^u:struct,_output:^rwhen^r:null and ^r:struct),_mthd:Default1)= id
459
-
static member inlineZipShortest((x:'``ZipShortestCollection<'T1>`` , y: '``ZipShortestCollection<'T2>`` ,_output:'``ZipShortestCollection<'T1*'T2>`` ),_mthd:Default1)= ZipShortest.InvokeOnInstance x y : '``ZipShortestCollection<'T1 * 'T2>``
Copy file name to clipboardExpand all lines: src/FSharpPlus/Control/Functor.fs
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -169,20 +169,21 @@ type Unzip =
169
169
typeZip=
170
170
inherit Default1
171
171
172
-
static memberZip((x:IEnumerator<'T>,y:IEnumerator<'U>,_output:IEnumerator<'T*'U>),_mthd:Zip)= Enumerator.zip x y
173
-
static memberZip((x:seq<'T>,y:seq<'U>,_output:seq<'T*'U>),_mthd:Zip)= Seq.zip x y
174
-
static memberZip((x:NonEmptySeq<'T>,y:NonEmptySeq<'U>,_output:NonEmptySeq<'T*'U>),_mthd:Zip)= NonEmptySeq.zip x y
175
-
static memberZip((x:IDictionary<'K,'T>,y:IDictionary<'K,'U>,_output:IDictionary<'K,'T*'U>),_mthd:Zip)= Dict.zip x y
172
+
static memberZip((x:IEnumerator<'T>,y:IEnumerator<'U>,_output:IEnumerator<'T*'U>),_mthd:Zip)= Enumerator.zip x y
173
+
static memberZip((x:seq<'T>,y:seq<'U>,_output:seq<'T*'U>),_mthd:Zip)= Seq.zipShortest x y
174
+
static memberZip((x:NonEmptySeq<'T>,y:NonEmptySeq<'U>,_output:NonEmptySeq<'T*'U>),_mthd:Zip)= NonEmptySeq.zipShortest x y
175
+
static memberZip((x:IDictionary<'K,'T>,y:IDictionary<'K,'U>,_output:IDictionary<'K,'T*'U>),_mthd:Zip)= Dict.zip x y
176
176
static memberZip((x:IReadOnlyDictionary<'K,'T>,y:IReadOnlyDictionary<'K,'U>,_output:IReadOnlyDictionary<'K,'T*'U>),_mthd:Zip)= IReadOnlyDictionary.zip x y
177
177
static memberZip((x:Dictionary<'K,'T>,y:Dictionary<'K,'U>,_output:Dictionary<'K,'T*'U>),_mthd:Zip)= Dict.zip x y :?> Dictionary<'K,'T*'U>
178
178
static memberZip((x:Map<'K,'T>,y:Map<'K,'U>,_output:Map<'K,'T*'U>),_mthd:Zip)= Map.zip x y
179
179
static memberZip((f:'R ->'T ,g:'R ->'U ,_output:'R ->'T * 'U ),_mthd:Zip)=fun x ->(f x, g x)
180
180
static memberZip((f:Func<'R,'T>,g:Func<'R,'U>,_output:Func<'R,'T*'U>),_mthd:Zip)= Func<_,_>(fun x ->(f.Invoke x, g.Invoke x))
181
-
static memberZip((x:list<'T>,y:list<'U>,_output:list<'T*'U>),_mthd:Zip)= List.zip x y
182
-
static memberZip((x:'T [],y:'U [],_output:('T*'U) []),_mthd:Zip)= Array.zip x y
183
-
static memberZip((x:option<'T>,y:option<'U>,_output:option<'T*'U>),_mthd:Zip)= Option.zip x y
184
-
static memberZip((x:Async<'T>,y:Async<'U>,_output:Async<'T*'U>),_mthd:Zip)= Async.zip x y
185
-
static memberZip((x:Task<'T>,y:Task<'U>,_output:Task<'T*'U>),_mthd:Zip)= Task.zip x y
181
+
static memberZip((x:list<'T>,y:list<'U>,_output:list<'T*'U>),_mthd:Zip)= List.zipShortest x y
182
+
static memberZip((x:'T [],y:'U [],_output:('T*'U) []),_mthd:Zip)= Array.zipShortest x y
183
+
static memberZip((x:ResizeArray<'T>,y:ResizeArray<'U>,_output:ResizeArray<'T*'U>),_mthd:Zip)= ResizeArray.zipShortest x y
184
+
static memberZip((x:option<'T>,y:option<'U>,_output:option<'T*'U>),_mthd:Zip)= Option.zip x y
185
+
static memberZip((x:Async<'T>,y:Async<'U>,_output:Async<'T*'U>),_mthd:Zip)= Async.zip x y
186
+
static memberZip((x:Task<'T>,y:Task<'U>,_output:Task<'T*'U>),_mthd:Zip)= Task.zip x y
186
187
187
188
static member inlineInvoke(source1:'``ZipFunctor<'T1>``)(source2:'``ZipFunctor<'T2>``)=
188
189
let inlinecall_4(a:^a,b:^b,c:^c,d:^d)=((^aor^bor^cor^d):(static memberZip:(_*_*_)*_->_)(b, c, d), a)
Copy file name to clipboardExpand all lines: src/FSharpPlus/Operators.fs
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -93,12 +93,10 @@ module Operators =
93
93
// Un-zips (un-tuple) two functors.
94
94
let inlineunzip(source:'``Functor<'T1*'T2>``)= Unzip.Invoke source : '``Functor<'T1>``* '``Functor<'T2>``
95
95
96
-
// Zips (tuple) two functors.
97
-
let inlinezip(source1:'``ZipFunctor<'T1>``)(source2:'``ZipFunctor<'T2>``):'``ZipFunctor<'T1*'T2>`` = Zip.Invoke source1 source2
98
-
99
96
// Zips safely two collections. If one collection is shorter, excess elements are discarded from the right end of the longer collection.
100
-
let inlinezipShortest(source1:'``ZipShortestCollection<'T1>``)(source2:'``ZipShortestCollection<'T2>``):'``ZipShortestCollection<'T1*'T2>`` =ZipShortest.Invoke source1 source2
97
+
let inlinezip(source1:'``ZipFunctor<'T1>``)(source2:'``ZipFunctor<'T2>``):'``ZipFunctor<'T1*'T2>`` =Zip.Invoke source1 source2
0 commit comments