Re: Concatenating compile time sequences

2019-03-03 Thread aliak via Digitalmars-d-learn
On Saturday, 2 March 2019 at 02:38:09 UTC, H. S. Teoh wrote: On Sat, Mar 02, 2019 at 02:16:22AM +, Victor Porton via Digitalmars-d-learn wrote: [...] Keep in mind that sequences produced by AliasSeq are auto-expanding, meaning the above construct will automatically flatten into a flat

Re: Concatenating compile time sequences

2019-03-01 Thread H. S. Teoh via Digitalmars-d-learn
On Sat, Mar 02, 2019 at 02:16:22AM +, Victor Porton via Digitalmars-d-learn wrote: > I try to split a compile time sequence of types and names into a > sequence consisting of two-element subsequences (each of type and > name). > > That is, I want to transform: > > (int, "x", float, "y",

Concatenating compile time sequences

2019-03-01 Thread Victor Porton via Digitalmars-d-learn
I try to split a compile time sequence of types and names into a sequence consisting of two-element subsequences (each of type and name). That is, I want to transform: (int, "x", float, "y", double, "z") into (AliasSeq!(int, "x"), AliasSeq!(float, "y"), AliasSeq!(double, "z")) I am