import std.algorithm, std.range;import std.stdio;typeof(v) foo(R)(R v) { return array(map!((p) { return p; })(v)); }void main() { foo([0]); }
Standard input is empty
prog.d(3): Error: undefined identifier v, did you mean alias R?
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!