On 3/27/19 8:29 PM, Jamie wrote: > Is it possible to assign to all values in a tuple at once if they are > the same type? > I.e. > > Tuple!(double, "x", double, "y") t; > t[] = 1.0; >
foreach (ref member; t.expand) { member = 1.0; }
Paul Backus via Digitalmars-d-learn Sat, 30 Mar 2019 10:21:00 -0700
On 3/27/19 8:29 PM, Jamie wrote: > Is it possible to assign to all values in a tuple at once if they are > the same type? > I.e. > > Tuple!(double, "x", double, "y") t; > t[] = 1.0; >
foreach (ref member; t.expand) { member = 1.0; }