How to pass voldemort types to functions

kerdemdemir via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 12 15:19:49 PDT 2015


Hi;

I have tuples created by std.algorithm.group function. 	

         auto tupleB = stringB.group();

I need to write a a function which takes tubleB and do some cool 
stuff. If I don't use a function and write all code below 
.group() everytihng works but for reusing the code I want to call 
a function with my tuples.

I tried ;

void foo(T...)(T tuple)
void foo(Tuple!(dchar,uint) tuplle)

But even couldn't compiile.

Do you have any idea for passing result of std.algorithm.group() 
to my free function?


More information about the Digitalmars-d-learn mailing list