Re: Predicates Within Strings

2021-06-14 Thread jfondren via Digitalmars-d-learn
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? My main question is how D infers the omitted variable specifications given otherwise - for example: `filter!(a => a < 3)(arr)

Predicates Within Strings

2021-06-14 Thread Justin Choi via Digitalmars-d-learn
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.