File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -649,9 +649,19 @@ type Gen<'a> with
649
649
/// Lifted function application = apply f to a, all in the Gen applicative functor.
650
650
static member (<*>) ( f , a ) = apply f a
651
651
652
- /// Like <*>, but puts f in a Gen first .
653
- static member (<!>) ( f , a ) = Gen.constant f <*> a
654
-
652
+ /// An alias for Map with arguments swapped .
653
+ static member (<!>) ( f , a ) = Gen.map f a
654
+
655
655
/// Bind operator; runs the first generator, then feeds the result
656
656
/// to the second generator function.
657
- static member (>>= ) ( m, k) = bind m k
657
+ static member (>>= ) ( m, k) = bind m k
658
+
659
+
660
+ // The reason for the following methods is that they are useful when
661
+ // interacting with FSharpPlus, together with the above defined operators.
662
+
663
+ [<System.ComponentModel.EditorBrowsable( System.ComponentModel.EditorBrowsableState.Never) >]
664
+ static member Return value = Gen.constant value
665
+
666
+ [<System.ComponentModel.EditorBrowsable( System.ComponentModel.EditorBrowsableState.Never) >]
667
+ static member Map ( value , f ) = Gen.map f value
You can’t perform that action at this time.
0 commit comments