Refresh 005_arrays2 exercise

Updated the exercise to use SIMD. This allows us to
cross-reference the concept from 112_vectors back to 005_arrays2,
introducing a handy feature of vectors early on.

See #430
This commit is contained in:
it3x
2026-06-27 09:04:32 +00:00
committed by Chris Boesch
parent f69c79bcb6
commit 98b831aec4
4 changed files with 30 additions and 10 deletions
+4
View File
@@ -145,3 +145,7 @@ pub fn main() void {
print("Max difference (old fn): {d: >5.3}\n", .{mpd_old});
print("Max difference (new fn): {d: >5.3}\n", .{mpd_new});
}
// Another cool feature of Vectors is repeating patterns.
// Remember the arrays exercise from earlier where we created an array
// by repeating a pattern? See `005_arrays2.zig`.