what wrong with this alias

Salih Dincer salihdb at hotmail.com
Sun Jan 8 09:40:49 UTC 2023


On Sunday, 8 January 2023 at 05:42:46 UTC, Qusatlegadus wrote:
> What's wrong with this alias?

```d
import std;
alias comb = map!q{a - '0'};
void main()
{
     auto s = 2234.to!string.map!q{a - '0'}.sum;
     s.to!string.comb.sum.writeln;
     // thiS works: "2"
}
```
SDB at 79



More information about the Digitalmars-d-learn mailing list