parameter pack to inputRange

Erik Smith via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 5 22:00:48 PDT 2016


Is there an existing way to adapt a parameter pack to an input 
range? I would like to construct an array with it.  Example:

void run(A...) (A args) {
      Array!int a(toInputRange(args));
}



More information about the Digitalmars-d-learn mailing list