string-int[] array
Dennis Ritchie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 8 11:43:33 PDT 2015
On Sunday, 8 March 2015 at 18:38:02 UTC, Dennis Ritchie wrote:
>
> Thanks, will do.
No, will not work.
On Sunday, 8 March 2015 at 18:25:33 UTC, Baz wrote:
>
> mmmh maybe off-topic, you probably don't what pairs but either
> a string representing an int or an int, do you ?
> If so then an array of union ?
string-int[] array;
a = [5, "v", 4, "t", "a", "b", 7, 9, 10, 15, "example"];
writeln(a); // [5, "v", 4, "t", "a", "b", 7, 9, 10, 15, "example"]
More information about the Digitalmars-d-learn
mailing list