staticRobin

Compile-time variant of std.range.robin for expression ExpressionLists.

Template expects StrictExpressionList list as parameter and returns new expression list where first element is from first expression ExpressionList, second element is from second ExpressionList and so on, until one of input ExpressionLists doesn't end.

template staticRobin (
SF...
) {
enum minLength;
}

Examples

Example

1 alias test = staticRobin!(StrictExpressionList!(int, int, int), StrictExpressionList!(float, float));
2 static assert(is(test == ExpressionList!(int, float, int, float)));
3 
4 alias test2 = staticRobin!(StrictExpressionList!(1, 2), StrictExpressionList!(3, 4, 5), StrictExpressionList!(6, 7));
5 static assert([test2]== [1, 3, 6, 2, 4, 7]);

Meta