++Phobos

Paul Backus snarwin at gmail.com
Sat Oct 19 13:45:44 UTC 2019


On Saturday, 19 October 2019 at 02:57:33 UTC, rikki cattermole 
wrote:
> auto:InputRange map(Args)(Args arg) { .. }
>
> A function that returns a value whose type conforms to the 
> InputRange specification. This would significantly improve the 
> documentation (as it cannot be done right now and people have 
> tried to find a solution).

auto map(Args...)(Args arg)
     out (result; isInputRange!(typeof(result)))
do {
     ...
}


More information about the Digitalmars-d mailing list