I apologize for the newbie question but how do I get the lambda the following to execute and return a string instead of the function pointer?:
private static immutable string[] typeNames = [staticMap!(T => typeof(T).stringof, TypeSeq)];
I currently get this error:
sumtype.d(61): Error: cannot implicitly convert expression `(int T) => "int"` of type `string function(int T) pure nothrow @nogc @safe` to `immutable(string)`
private static immutable string[] typeNames = [staticMap!(T => typeof(T).stringof, TypeSeq)];
^
Thanks in advance.
-- confuzzled