Decoding Pattern to a Tuple

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 19 10:10:50 PST 2016


Have anybody put together a generalised form of findSplit that 
can split and decode using a compile time parameters somewhat like

"(1)-(2.0)".decode!("(", int, ")", char, "(", double, ")")

evaluates to

to a

tuple!(int, char, double)

with value

tuple(1, '-', 2.0)


More information about the Digitalmars-d-learn mailing list