Could somebody explain or point me to documentation that helps to explain the usage of strings in predicates?
My main question is how D infers the omitted variable specifications given otherwise - for example:
filter!(a => a < 3)(arr);
and
filter!"a < 3"(arr);
produce the same result.
June 14, 2021 Predicates Within Strings | ||||
---|---|---|---|---|
| ||||
June 14, 2021 Re: Predicates Within Strings | ||||
---|---|---|---|---|
| ||||
Posted in reply to Justin Choi | On Monday, 14 June 2021 at 15:01:01 UTC, Justin Choi wrote: >Could somebody explain or point me to documentation that helps to explain the usage of strings in predicates? The strings are just strings. If you look at the implementation for That has nothing to do with your main question though. Function
I don't see a lot of detail about the type inference itself. |