Discussion Thread: DIP 1037--Add Unary Operator ...--Community Review Round 1

Paul Backus snarwin at gmail.com
Wed Oct 28 15:05:19 UTC 2020


On Wednesday, 28 October 2020 at 14:56:10 UTC, Ola Fosheim 
Grøstad wrote:
>> I don't think this is necessary, and it is deliberately 
>> omitted.
>
> That is a serious omission. Fold needs an initial value in 
> order to be generic.

You can add an initial value outside of the fold expression:

     false || Tup == 10 || ...


More information about the Digitalmars-d mailing list