Skip to content

Commit

Permalink
+ MergeSources3 to Builders
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty authored and wallymathieu committed Jul 16, 2021
1 parent 1397324 commit c83666c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FSharpPlus/Builders.fs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ module GenericBuilders =
member inline __.Return (x: 'T) = result x : '``Monad<'T>``
member inline __.Yield (x: 'T) = result x : '``Monad<'T>``
member inline __.Bind (p: '``Monad<'T>``, rest: 'T->'``Monad<'U>``) = p >>= rest : '``Monad<'U>``
member inline __.MergeSources (t1: '``Monad<'T>``, t2: '``Monad<'U>``) : '``Monad<'T * 'U>`` = Lift2.Invoke tuple2 t1 t2
member inline __.MergeSources (t1: '``Monad<'T>``, t2: '``Monad<'U>``) : '``Monad<'T * 'U>`` = Lift2.Invoke tuple2 t1 t2
member inline __.MergeSources3 (t1: '``Monad<'T>``, t2: '``Monad<'U>``, t3: '``Monad<'V>``) : '``Monad<'T * 'U * 'V>`` = Lift3.Invoke tuple3 t1 t2 t3

[<CustomOperation("select", MaintainsVariableSpaceUsingBind=true, AllowIntoPattern=true)>]
member inline __.Select (x, [<ProjectionParameter>] f) = map f x
Expand Down

0 comments on commit c83666c

Please sign in to comment.