How to import the types mapresult and filterresult
Mike Parker
aldacron at gmail.com
Tue May 18 12:30:20 UTC 2021
On Tuesday, 18 May 2021 at 12:15:25 UTC, Alain De Vos wrote:
> Something like:
> import X.Y.Z:mapresult ;
You don't. The types returned by map, filter, and other
algorithms are not public. They're "Voldemort", or anonymous,
types. Instances aren't generally intended to be stored, but
rather to be completely consumed at the end of a chain of
function calls.
But if you need to store one in a local variable temporarily, you
can use `auto`:
```d
auto result = map...
```
More information about the Digitalmars-d-learn
mailing list