Inline imports redivivus
Dom DiSc
dominikus at scherkl.de
Sun Mar 13 08:23:52 UTC 2022
On Saturday, 12 March 2022 at 23:57:09 UTC, Zach Tollen wrote:
> I'm curious what other people think.
Locality can be overdone. I think this would suffice:
```d
if (Values.length != 0)
{
import std.functional : binaryFun;
foreach (uint i, ref v; values)
if (binaryFun!pred(value, v)) return i + 1;
return 0;
}
```
So any new feature is here totally superfluous IMHO.
More information about the Digitalmars-d
mailing list