construct range from tuple?
Nicholas Wilson via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Sep 18 01:58:01 PDT 2016
On Sunday, 18 September 2016 at 08:06:54 UTC, Lutger wrote:
> I have a tuple of strings generated at compile time, for
> example:
>
> alias names = AliasSeq!("Alice", "Bob");
>
> How is it possible to construct a range of strings from this,
> in order to use it at runtime with other range algorithms?
>
> For example, this
>
> chain(names, ["Chuck"])
>
Try
> chain([names], ["Chuck"])
> [...]
More information about the Digitalmars-d-learn
mailing list