inline fn reverseVector(comptime N: usize, comptime T: type, a: []T) [N]T N: usizeT: typea: []T3915
3916
3917
3918
3919
3920
3921inline fn reverseVector(comptime N: usize, comptime T: type, a: []T) [N]T {
var res: [N]T = undefined;
inline for (0..N) |i| {
res[i] = a[N - i - 1];
}
return res;
}