turn range into tuple ?

Flaze07 christianseiji.cs at gmail.com
Thu Jun 28 08:36:54 UTC 2018


is there some sort of ways to turn range into tuple ? ( an array 
preferably )
e.g
uint[] arr = [ 10, 20, 30 ];
auto tup = rangeToTup( arr );
assert( tup[ 0 ] == 10 );
assert( tup[ 1 ] == 20 );
assert( tup[ 2 ] == 30 );


More information about the Digitalmars-d-learn mailing list