5 lines
197 B
Plaintext
5 lines
197 B
Plaintext
|
// Concatenate two u32[8] arrays in an order defined by a boolean selector
|
||
|
def main(bool selector, u32[8] lhs, u32[8] rhs) -> u32[16] {
|
||
|
return selector ? [...rhs, ...lhs] : [...lhs, ...rhs];
|
||
|
}
|