Modern C++ Lamentations
sarn
sarn at theartofmachinery.com
Sun Dec 30 21:12:51 UTC 2018
On Sunday, 30 December 2018 at 16:51:07 UTC, Jacob Carlborg wrote:
> On 2018-12-30 15:46, Andrei Alexandrescu wrote:
>> On 12/29/18 9:03 PM, Timon Gehr wrote:
>>> alias then(alias a)=(r)=>map!a(r).joiner;
>> The "then" abstraction is pretty awesome. Thanks!
>
> Isn't that usually called "flatMap"?
Yeah, in Haskell monad terminology, "then" means >>, but flatMap
is >>= ("bind"). So flatMap is a less confusing name for some
people.
More information about the Digitalmars-d
mailing list