21 Sep
2016
21 Sep
'16
8:59 a.m.
On 21 Sep 2016 7:21 am, "Andrzej Krzemienski"
2016-09-21 1:32 GMT+02:00 Giovanni Piero Deretta
: On 20 Sep 2016 12:04 pm, "Andrzej Krzemienski"
wrote:
* Add flatMap?
Thanks for the feedback. I am just reading through it. Just one immediate question. What do you mean by "Add flatMap" here? What would it do?
Apply a function f to the contained element of the markable<T> (if non empty). If f is from T->U returns markable<U>, if it is T->markable<U> simply returns that. Exactly like std::future::then. In fact it should probably be called 'then' instead of flatMap. Optional should also have it of course. -- gpd