Skip to content

Commit 762b460

Browse files
committed
Fix type inference in chain of <.> test
1 parent f42c6e9 commit 762b460

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/FSharpPlus/Data/NonEmptySeq.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ type NonEmptySeq<'t> =
7373
static member Map2 (f, x: NonEmptySeq<_>, y: NonEmptySeq<_>) = Seq.map2 f x y |> NonEmptySeq<_>.unsafeOfSeq
7474
static member Map3 (f, x: NonEmptySeq<_>, y: NonEmptySeq<_>, z: NonEmptySeq<_>) = Seq.map3 f x y z |> NonEmptySeq<_>.unsafeOfSeq
7575
static member IsZipLeftZero (_: NonEmptySeq<_>) = false
76+
77+
[<EditorBrowsable(EditorBrowsableState.Never)>]
78+
static member ``<.>`` (struct (f: NonEmptySeq<_>, x: NonEmptySeq<'T> ), [<Optional>]_output: NonEmptySeq<'U>, [<Optional>]_mthd: ZipApply) = Seq.map2 (<|) f x |> NonEmptySeq<_>.unsafeOfSeq
79+
80+
[<EditorBrowsable(EditorBrowsableState.Never)>]
81+
static member ``<*>`` (struct (f: NonEmptySeq<_>, x: NonEmptySeq<'T> ), [<Optional>]_output: NonEmptySeq<'U>, [<Optional>]_mthd: ZipApply) = NonEmptySeq<_>.apply f x
7682

7783
static member Zip (x: NonEmptySeq<'T>, y: NonEmptySeq<'U>) = NonEmptySeq<_>.zip x y
7884
static member (>>=) (source: NonEmptySeq<'T>, f: 'T -> NonEmptySeq<'U>) = NonEmptySeq<_>.collect f source : NonEmptySeq<'U>

0 commit comments

Comments
 (0)