We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b74bd02 commit e7989beCopy full SHA for e7989be
README.md
@@ -77,7 +77,10 @@ if(!x.hasValue) {
77
```c++
78
79
int sum(int x, int y){ return x+y; }
80
-auto monadicSum = lift(sum); // Maybe<int> MonadicSum(Maybe<int>, Maybe<int>)
+
81
+//...
82
83
+auto monadicSum = lift(sum); // transforms sum to: Maybe<int> MonadicSum(Maybe<int>, Maybe<int>)
84
85
ASSERT_TRUE( monadicSum( maybe(5) , maybe(7) ).get(0) == 12 );
86
ASSERT_TRUE( monadicSum( maybe(), maybe(1) ).hasValue == false);
0 commit comments