@@ -11,11 +11,10 @@ open FSharpPlus.Internals.Prelude
1111open FSharpPlus.Internals .MonadOps
1212open FSharpPlus.Extensions
1313
14-
1514type Sequence =
1615 inherit Default1
1716 static member inline InvokeOnInstance ( t : '``Traversable < Functor < 'T >> ``) = (^ `` Traversable<Functor<'T>> `` : ( static member Sequence : _ -> _) t) : '`` Functor<'Traversable<'T>> ``
18-
17+
1918 [<EditorBrowsable( EditorBrowsableState.Never) >]
2019 static member inline ForInfiniteSequences ( t : seq < _ >, isFailure , conversion ) =
2120 let add x y = y :: x
@@ -26,7 +25,6 @@ type Sequence =
2625 if isFailure e.Current then go <- false
2726 r <- Map.Invoke add r <*> e.Current
2827 Map.Invoke ( List.rev >> conversion) r
29-
3028
3129type Traverse =
3230 inherit Default1
@@ -187,22 +185,22 @@ type Sequence with
187185 Seq.foldBack cons_ f t ( result Seq.empty)
188186
189187 static member inline Sequence ( t : seq < '``Applicative < 'T > ``>, [<Optional>] _output : '``Applicative < seq < 'T >> `` , [<Optional>] _impl : Default4 ) = Sequence.ForInfiniteSequences ( t, IsLeftZero.Invoke, List.toSeq) : '`` Applicative<seq<'T>> ``
190- static member Sequence ( t : seq < option < 't >> , [<Optional>] _output : option < seq < 't >> , [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences ( t , Option.isNone , List.toSeq ) : option< seq< 't>>
188+ static member Sequence ( t : seq < option < 't >> , [<Optional>] _output : option < seq < 't >> , [<Optional>] _impl : Default3 ) = Option.Sequence t : option< seq< 't>>
191189 #if ! FABLE_ COMPILER
192- static member Sequence ( t : seq < voption < 't >> , [<Optional>] _output : voption < seq < 't >> , [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences ( t , ValueOption.isNone , List.toSeq ) : voption< seq< 't>>
190+ static member Sequence ( t : seq < voption < 't >> , [<Optional>] _output : voption < seq < 't >> , [<Optional>] _impl : Default3 ) = ValueOption.Sequence t : voption< seq< 't>>
193191 #endif
194- static member Sequence ( t : seq < Result < 't , 'e >>, [<Optional>] _output : Result < seq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences ( t , ( function Error _ -> true | _ -> false ), List.toSeq ) : Result< seq< 't>, 'e>
195- static member Sequence ( t : seq < Choice < 't , 'e >>, [<Optional>] _output : Choice < seq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences ( t , ( function Choice2Of2 _ -> true | _ -> false ), List.toSeq ) : Choice< seq< 't>, 'e>
192+ static member Sequence ( t : seq < Result < 't , 'e >>, [<Optional>] _output : Result < seq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Result.Sequence t : Result< seq< 't>, 'e>
193+ static member Sequence ( t : seq < Choice < 't , 'e >>, [<Optional>] _output : Choice < seq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Choice.Sequence t : Choice< seq< 't>, 'e>
196194 static member Sequence ( t : seq < list < 't >> , [<Optional>] _output : list < seq < 't >> , [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences( t, List.isEmpty, List.toSeq) : list< seq< 't>>
197195 static member Sequence ( t : seq < 't []> , [<Optional>] _output : seq < 't > [] , [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences( t, Array.isEmpty, List.toSeq) : seq< 't> []
198196
199197 #if ! FABLE_ COMPILER
200198 static member Sequence ( t : seq < Async < 't >> , [<Optional>] _output : Async < seq < 't >> , [<Optional>] _impl : Default3 ) = Async.Sequence t : Async< seq< 't>>
201199 #endif
202200 static member inline Sequence ( t : NonEmptySeq < '``Applicative < 'T > ``>, [<Optional>] _output : '``Applicative < NonEmptySeq < 'T >> `` , [<Optional>] _impl : Default4 ) = Sequence.ForInfiniteSequences ( t, IsLeftZero.Invoke, NonEmptySeq.ofList) : '`` Applicative<NonEmptySeq<'T>> ``
203- static member Sequence ( t : NonEmptySeq < option < 't >> , [<Optional>] _output : option < NonEmptySeq < 't >> , [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences ( t , Option.isNone , NonEmptySeq.ofList ) : option< NonEmptySeq< 't>>
204- static member Sequence ( t : NonEmptySeq < Result < 't , 'e >>, [<Optional>] _output : Result < NonEmptySeq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences ( t , ( function Error _ -> true | _ -> false ), NonEmptySeq.ofList ) : Result< NonEmptySeq< 't>, 'e>
205- static member Sequence ( t : NonEmptySeq < Choice < 't , 'e >>, [<Optional>] _output : Choice < NonEmptySeq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences ( t , ( function Choice2Of2 _ -> true | _ -> false ), NonEmptySeq.ofList ) : Choice< NonEmptySeq< 't>, 'e>
201+ static member Sequence ( t : NonEmptySeq < option < 't >> , [<Optional>] _output : option < NonEmptySeq < 't >> , [<Optional>] _impl : Default3 ) = Option.Sequence t |> Option.map NonEmptySeq.unsafeOfSeq : option< NonEmptySeq< 't>>
202+ static member Sequence ( t : NonEmptySeq < Result < 't , 'e >>, [<Optional>] _output : Result < NonEmptySeq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Result.Sequence t |> Result.map NonEmptySeq.unsafeOfSeq : Result< NonEmptySeq< 't>, 'e>
203+ static member Sequence ( t : NonEmptySeq < Choice < 't , 'e >>, [<Optional>] _output : Choice < NonEmptySeq < 't >, 'e >, [<Optional>] _impl : Default3 ) = Choice.Sequence t |> Choice.map NonEmptySeq.unsafeOfSeq : Choice< NonEmptySeq< 't>, 'e>
206204 static member Sequence ( t : NonEmptySeq < list < 't >> , [<Optional>] _output : list < NonEmptySeq < 't >> , [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences( t, List.isEmpty, NonEmptySeq.ofList) : list< NonEmptySeq< 't>>
207205 static member Sequence ( t : NonEmptySeq < 't []> , [<Optional>] _output : NonEmptySeq < 't > [] , [<Optional>] _impl : Default3 ) = Sequence.ForInfiniteSequences( t, Array.isEmpty, NonEmptySeq.ofList) : NonEmptySeq< 't> []
208206 #if ! FABLE_ COMPILER
0 commit comments