diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-24 17:33:05 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-24 17:33:05 +0000 |
| commit | 989a03dc7746bc681f3730ba20a0b6b52deed6f4 (patch) | |
| tree | d7d01367fe35e0034eeb3f4e5165ec7ec7dd6426 /src/check_stmt.cpp | |
| parent | 7a045bd95770d5c9624963dd9b8bb8a614940841 (diff) | |
`soa_zip` (-llvm-api only): creates an `#soa[]struct` from passed slices
x := []i32{1, 3, 9};
y := []f32{2, 4, 16};
z := []b32{true, false, true};
s_anonymous := soa_zip(x, y, z);
assert(s_anonymous[0]._1 == 2);
s_named := soa_zip(a=x, b=y, c=z);
assert(s_anonymous[0].b == 2);
Diffstat (limited to 'src/check_stmt.cpp')
0 files changed, 0 insertions, 0 deletions