How to get type returned by e.g. std.algorithm.iteration.filter

Jacob Carlborg doob at me.com
Sun May 19 18:38:17 UTC 2019


On 2019-05-19 15:36, Christian Köstlin wrote:

> Unfortunately I have no idea how to even store the result 
> of this search in an attribute of ByMinimum, as I cannot writeout its type.

In general you can use `typeof(<expression>)`, where `<expression>` is 
the expression you want to get the type of.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list