Browse Source

"999 is enough for anybody" triple-zero padding (#18)

When I hit 999 exercises, I will finally have reached the ultimate
state of soteriological release and no more exercises will be needed.
The cycle will be complete. All that will be left is perfect quietude,
freedom, and highest happiness.
Dave Gauer 4 years ago
parent
commit
0956f1839f
115 changed files with 70 additions and 62 deletions
  1. 70 62
      build.zig
  2. 0 0
      exercises/001_hello.zig
  3. 0 0
      exercises/002_std.zig
  4. 0 0
      exercises/003_assignment.zig
  5. 0 0
      exercises/004_arrays.zig
  6. 0 0
      exercises/005_arrays2.zig
  7. 0 0
      exercises/006_strings.zig
  8. 0 0
      exercises/007_strings2.zig
  9. 0 0
      exercises/008_quiz.zig
  10. 0 0
      exercises/009_if.zig
  11. 0 0
      exercises/010_if2.zig
  12. 0 0
      exercises/011_while.zig
  13. 0 0
      exercises/012_while2.zig
  14. 0 0
      exercises/013_while3.zig
  15. 0 0
      exercises/014_while4.zig
  16. 0 0
      exercises/015_for.zig
  17. 0 0
      exercises/016_for2.zig
  18. 0 0
      exercises/017_quiz2.zig
  19. 0 0
      exercises/018_functions.zig
  20. 0 0
      exercises/019_functions2.zig
  21. 0 0
      exercises/020_quiz3.zig
  22. 0 0
      exercises/021_errors.zig
  23. 0 0
      exercises/022_errors2.zig
  24. 0 0
      exercises/023_errors3.zig
  25. 0 0
      exercises/024_errors4.zig
  26. 0 0
      exercises/025_errors5.zig
  27. 0 0
      exercises/026_hello2.zig
  28. 0 0
      exercises/027_defer.zig
  29. 0 0
      exercises/028_defer2.zig
  30. 0 0
      exercises/029_errdefer.zig
  31. 0 0
      exercises/030_switch.zig
  32. 0 0
      exercises/031_switch2.zig
  33. 0 0
      exercises/032_unreachable.zig
  34. 0 0
      exercises/033_iferror.zig
  35. 0 0
      exercises/034_quiz4.zig
  36. 0 0
      exercises/035_enums.zig
  37. 0 0
      exercises/036_enums2.zig
  38. 0 0
      exercises/037_structs.zig
  39. 0 0
      exercises/038_structs2.zig
  40. 0 0
      exercises/039_pointers.zig
  41. 0 0
      exercises/040_pointers2.zig
  42. 0 0
      exercises/041_pointers3.zig
  43. 0 0
      exercises/042_pointers4.zig
  44. 0 0
      exercises/043_pointers5.zig
  45. 0 0
      exercises/044_quiz5.zig
  46. 0 0
      exercises/045_optionals.zig
  47. 0 0
      exercises/046_optionals2.zig
  48. 0 0
      exercises/047_methods.zig
  49. 0 0
      exercises/048_methods2.zig
  50. 0 0
      exercises/049_quiz6.zig
  51. 0 0
      exercises/050_no_value.zig
  52. 0 0
      exercises/051_values.zig
  53. 0 0
      exercises/052_slices.zig
  54. 0 0
      exercises/053_slices2.zig
  55. 0 0
      exercises/054_manypointers.zig
  56. 0 0
      exercises/055_unions.zig
  57. 0 0
      exercises/056_unions2.zig
  58. 0 0
      exercises/057_unions3.zig
  59. 0 0
      patches/patches/001_hello.patch
  60. 0 0
      patches/patches/002_std.patch
  61. 0 0
      patches/patches/003_assignment.patch
  62. 0 0
      patches/patches/004_arrays.patch
  63. 0 0
      patches/patches/005_arrays2.patch
  64. 0 0
      patches/patches/006_strings.patch
  65. 0 0
      patches/patches/007_strings2.patch
  66. 0 0
      patches/patches/008_quiz.patch
  67. 0 0
      patches/patches/009_if.patch
  68. 0 0
      patches/patches/010_if2.patch
  69. 0 0
      patches/patches/011_while.patch
  70. 0 0
      patches/patches/012_while2.patch
  71. 0 0
      patches/patches/013_while3.patch
  72. 0 0
      patches/patches/014_while4.patch
  73. 0 0
      patches/patches/015_for.patch
  74. 0 0
      patches/patches/016_for2.patch
  75. 0 0
      patches/patches/017_quiz2.patch
  76. 0 0
      patches/patches/018_functions.patch
  77. 0 0
      patches/patches/019_functions2.patch
  78. 0 0
      patches/patches/020_quiz3.patch
  79. 0 0
      patches/patches/021_errors.patch
  80. 0 0
      patches/patches/022_errors2.patch
  81. 0 0
      patches/patches/023_errors3.patch
  82. 0 0
      patches/patches/024_errors4.patch
  83. 0 0
      patches/patches/025_errors5.patch
  84. 0 0
      patches/patches/026_hello2.patch
  85. 0 0
      patches/patches/027_defer.patch
  86. 0 0
      patches/patches/028_defer2.patch
  87. 0 0
      patches/patches/029_errdefer.patch
  88. 0 0
      patches/patches/030_switch.patch
  89. 0 0
      patches/patches/031_switch2.patch
  90. 0 0
      patches/patches/032_unreachable.patch
  91. 0 0
      patches/patches/033_iferror.patch
  92. 0 0
      patches/patches/034_quiz4.patch
  93. 0 0
      patches/patches/035_enums.patch
  94. 0 0
      patches/patches/036_enums2.patch
  95. 0 0
      patches/patches/037_structs.patch
  96. 0 0
      patches/patches/038_structs2.patch
  97. 0 0
      patches/patches/039_pointers.patch
  98. 0 0
      patches/patches/040_pointers2.patch
  99. 0 0
      patches/patches/041_pointers3.patch
  100. 0 0
      patches/patches/042_pointers4.patch
  101. 0 0
      patches/patches/043_pointers5.patch
  102. 0 0
      patches/patches/044_quiz5.patch
  103. 0 0
      patches/patches/045_optionals.patch
  104. 0 0
      patches/patches/046_optionals2.patch
  105. 0 0
      patches/patches/047_methods.patch
  106. 0 0
      patches/patches/048_methods2.patch
  107. 0 0
      patches/patches/049_quiz6.patch
  108. 0 0
      patches/patches/050_no_value.patch
  109. 0 0
      patches/patches/051_values.patch
  110. 0 0
      patches/patches/052_slices.patch
  111. 0 0
      patches/patches/053_slices2.patch
  112. 0 0
      patches/patches/054_manypointers.patch
  113. 0 0
      patches/patches/055_unions.patch
  114. 0 0
      patches/patches/056_unions2.patch
  115. 0 0
      patches/patches/057_unions3.patch

+ 70 - 62
build.zig

@@ -27,269 +27,278 @@ const Exercise = struct {
         return self.main_file[0 .. self.main_file.len - 4];
         return self.main_file[0 .. self.main_file.len - 4];
     }
     }
 
 
-    /// Returns the key of the main file, which is the text before the _.
-    /// For example, "01_hello.zig" has the key "01".
+    /// Returns the key of the main file, the string before the '_' with
+    /// "zero padding" removed.
+    /// For example, "001_hello.zig" has the key "1".
     pub fn key(self: Exercise) []const u8 {
     pub fn key(self: Exercise) []const u8 {
         const end_index = std.mem.indexOfScalar(u8, self.main_file, '_');
         const end_index = std.mem.indexOfScalar(u8, self.main_file, '_');
         assert(end_index != null); // main file must be key_description.zig
         assert(end_index != null); // main file must be key_description.zig
-        return self.main_file[0..end_index.?];
+
+        // remove zero padding by advancing index past '0's
+        var start_index: usize = 0;
+        while (self.main_file[start_index] == '0') start_index += 1;
+        return self.main_file[start_index..end_index.?];
     }
     }
 };
 };
 
 
 const exercises = [_]Exercise{
 const exercises = [_]Exercise{
     .{
     .{
-        .main_file = "01_hello.zig",
+        .main_file = "001_hello.zig",
         .output = "Hello world",
         .output = "Hello world",
         .hint = "DON'T PANIC!\nRead the error above.\nSee how it has something to do with 'main'?\nOpen up the source file as noted and read the comments.\nYou can do this!",
         .hint = "DON'T PANIC!\nRead the error above.\nSee how it has something to do with 'main'?\nOpen up the source file as noted and read the comments.\nYou can do this!",
     },
     },
     .{
     .{
-        .main_file = "02_std.zig",
+        .main_file = "002_std.zig",
         .output = "Standard Library",
         .output = "Standard Library",
     },
     },
     .{
     .{
-        .main_file = "03_assignment.zig",
+        .main_file = "003_assignment.zig",
         .output = "55 314159 -11",
         .output = "55 314159 -11",
         .hint = "There are three mistakes in this one!",
         .hint = "There are three mistakes in this one!",
     },
     },
     .{
     .{
-        .main_file = "04_arrays.zig",
+        .main_file = "004_arrays.zig",
         .output = "Fourth: 7, Length: 8",
         .output = "Fourth: 7, Length: 8",
         .hint = "There are two things to complete here.",
         .hint = "There are two things to complete here.",
     },
     },
     .{
     .{
-        .main_file = "05_arrays2.zig",
+        .main_file = "005_arrays2.zig",
         .output = "LEET: 1337, Bits: 100110011001",
         .output = "LEET: 1337, Bits: 100110011001",
         .hint = "Fill in the two arrays.",
         .hint = "Fill in the two arrays.",
     },
     },
     .{
     .{
-        .main_file = "06_strings.zig",
+        .main_file = "006_strings.zig",
         .output = "d=d ha ha ha Major Tom",
         .output = "d=d ha ha ha Major Tom",
         .hint = "Each '???' needs something filled in.",
         .hint = "Each '???' needs something filled in.",
     },
     },
     .{
     .{
-        .main_file = "07_strings2.zig",
+        .main_file = "007_strings2.zig",
         .output = "Ziggy",
         .output = "Ziggy",
         .hint = "Please fix the lyrics!",
         .hint = "Please fix the lyrics!",
     },
     },
     .{
     .{
-        .main_file = "08_quiz.zig",
+        .main_file = "008_quiz.zig",
         .output = "Program in Zig",
         .output = "Program in Zig",
         .hint = "See if you can fix the program!",
         .hint = "See if you can fix the program!",
     },
     },
     .{
     .{
-        .main_file = "09_if.zig",
+        .main_file = "009_if.zig",
         .output = "Foo is 1!",
         .output = "Foo is 1!",
     },
     },
     .{
     .{
-        .main_file = "10_if2.zig",
+        .main_file = "010_if2.zig",
         .output = "price is $17",
         .output = "price is $17",
     },
     },
     .{
     .{
-        .main_file = "11_while.zig",
+        .main_file = "011_while.zig",
         .output = "n=1024",
         .output = "n=1024",
         .hint = "You probably want a 'less than' condition.",
         .hint = "You probably want a 'less than' condition.",
     },
     },
     .{
     .{
-        .main_file = "12_while2.zig",
+        .main_file = "012_while2.zig",
         .output = "n=1024",
         .output = "n=1024",
         .hint = "It might help to look back at the previous exercise.",
         .hint = "It might help to look back at the previous exercise.",
     },
     },
     .{
     .{
-        .main_file = "13_while3.zig",
+        .main_file = "013_while3.zig",
         .output = "1 2 4 7 8 11 13 14 16 17 19",
         .output = "1 2 4 7 8 11 13 14 16 17 19",
     },
     },
     .{
     .{
-        .main_file = "14_while4.zig",
+        .main_file = "014_while4.zig",
         .output = "n=4",
         .output = "n=4",
     },
     },
     .{
     .{
-        .main_file = "15_for.zig",
+        .main_file = "015_for.zig",
         .output = "A Dramatic Story: :-)  :-)  :-(  :-|  :-)  The End.",
         .output = "A Dramatic Story: :-)  :-)  :-(  :-|  :-)  The End.",
     },
     },
     .{
     .{
-        .main_file = "16_for2.zig",
+        .main_file = "016_for2.zig",
         .output = "13",
         .output = "13",
     },
     },
     .{
     .{
-        .main_file = "17_quiz2.zig",
+        .main_file = "017_quiz2.zig",
         .output = "8, Fizz, Buzz, 11, Fizz, 13, 14, FizzBuzz, 16",
         .output = "8, Fizz, Buzz, 11, Fizz, 13, 14, FizzBuzz, 16",
         .hint = "This is a famous game!",
         .hint = "This is a famous game!",
     },
     },
     .{
     .{
-        .main_file = "18_functions.zig",
+        .main_file = "018_functions.zig",
         .output = "Question: 42",
         .output = "Question: 42",
         .hint = "Can you help write the function?",
         .hint = "Can you help write the function?",
     },
     },
     .{
     .{
-        .main_file = "19_functions2.zig",
+        .main_file = "019_functions2.zig",
         .output = "2 4 8 16",
         .output = "2 4 8 16",
     },
     },
     .{
     .{
-        .main_file = "20_quiz3.zig",
+        .main_file = "020_quiz3.zig",
         .output = "32 64 128 256",
         .output = "32 64 128 256",
         .hint = "Unexpected pop quiz! Help!",
         .hint = "Unexpected pop quiz! Help!",
     },
     },
     .{
     .{
-        .main_file = "21_errors.zig",
+        .main_file = "021_errors.zig",
         .output = "2<4. 3<4. 4=4. 5>4. 6>4.",
         .output = "2<4. 3<4. 4=4. 5>4. 6>4.",
         .hint = "What's the deal with fours?",
         .hint = "What's the deal with fours?",
     },
     },
     .{
     .{
-        .main_file = "22_errors2.zig",
+        .main_file = "022_errors2.zig",
         .output = "I compiled",
         .output = "I compiled",
         .hint = "Get the error union type right to allow this to compile.",
         .hint = "Get the error union type right to allow this to compile.",
     },
     },
     .{
     .{
-        .main_file = "23_errors3.zig",
+        .main_file = "023_errors3.zig",
         .output = "a=64, b=22",
         .output = "a=64, b=22",
     },
     },
     .{
     .{
-        .main_file = "24_errors4.zig",
+        .main_file = "024_errors4.zig",
         .output = "a=20, b=14, c=10",
         .output = "a=20, b=14, c=10",
     },
     },
     .{
     .{
-        .main_file = "25_errors5.zig",
+        .main_file = "025_errors5.zig",
         .output = "a=0, b=19, c=0",
         .output = "a=0, b=19, c=0",
     },
     },
     .{
     .{
-        .main_file = "26_hello2.zig",
+        .main_file = "026_hello2.zig",
         .output = "Hello world",
         .output = "Hello world",
         .hint = "Try using a try!",
         .hint = "Try using a try!",
         .check_stdout = true,
         .check_stdout = true,
     },
     },
     .{
     .{
-        .main_file = "27_defer.zig",
+        .main_file = "027_defer.zig",
         .output = "One Two",
         .output = "One Two",
     },
     },
     .{
     .{
-        .main_file = "28_defer2.zig",
+        .main_file = "028_defer2.zig",
         .output = "(Goat) (Cat) (Dog) (Dog) (Goat) (Unknown) done.",
         .output = "(Goat) (Cat) (Dog) (Dog) (Goat) (Unknown) done.",
     },
     },
     .{
     .{
-        .main_file = "29_errdefer.zig",
+        .main_file = "029_errdefer.zig",
         .output = "Getting number...got 5. Getting number...failed!",
         .output = "Getting number...got 5. Getting number...failed!",
     },
     },
     .{
     .{
-        .main_file = "30_switch.zig",
+        .main_file = "030_switch.zig",
         .output = "ZIG?",
         .output = "ZIG?",
     },
     },
     .{
     .{
-        .main_file = "31_switch2.zig",
+        .main_file = "031_switch2.zig",
         .output = "ZIG!",
         .output = "ZIG!",
     },
     },
     .{
     .{
-        .main_file = "32_unreachable.zig",
+        .main_file = "032_unreachable.zig",
         .output = "1 2 3 9 8 7",
         .output = "1 2 3 9 8 7",
     },
     },
     .{
     .{
-        .main_file = "33_iferror.zig",
+        .main_file = "033_iferror.zig",
         .output = "2<4. 3<4. 4=4. 5>4. 6>4.",
         .output = "2<4. 3<4. 4=4. 5>4. 6>4.",
         .hint = "Seriously, what's the deal with fours?",
         .hint = "Seriously, what's the deal with fours?",
     },
     },
     .{
     .{
-        .main_file = "34_quiz4.zig",
+        .main_file = "034_quiz4.zig",
         .output = "my_num=42",
         .output = "my_num=42",
         .hint = "Can you make this work?",
         .hint = "Can you make this work?",
         .check_stdout = true,
         .check_stdout = true,
     },
     },
     .{
     .{
-        .main_file = "35_enums.zig",
+        .main_file = "035_enums.zig",
         .output = "1 2 3 9 8 7",
         .output = "1 2 3 9 8 7",
         .hint = "This problem seems familiar...",
         .hint = "This problem seems familiar...",
     },
     },
     .{
     .{
-        .main_file = "36_enums2.zig",
+        .main_file = "036_enums2.zig",
         .output = "#0000ff",
         .output = "#0000ff",
         .hint = "I'm feeling blue about this.",
         .hint = "I'm feeling blue about this.",
     },
     },
     .{
     .{
-        .main_file = "37_structs.zig",
+        .main_file = "037_structs.zig",
         .output = "Your wizard has 90 health and 25 gold.",
         .output = "Your wizard has 90 health and 25 gold.",
     },
     },
     .{
     .{
-        .main_file = "38_structs2.zig",
+        .main_file = "038_structs2.zig",
         .output = "Character 2 - G:10 H:100 XP:20",
         .output = "Character 2 - G:10 H:100 XP:20",
     },
     },
     .{
     .{
-        .main_file = "39_pointers.zig",
+        .main_file = "039_pointers.zig",
         .output = "num1: 5, num2: 5",
         .output = "num1: 5, num2: 5",
         .hint = "Pointers aren't so bad.",
         .hint = "Pointers aren't so bad.",
     },
     },
     .{
     .{
-        .main_file = "40_pointers2.zig",
+        .main_file = "040_pointers2.zig",
         .output = "a: 12, b: 12",
         .output = "a: 12, b: 12",
     },
     },
     .{
     .{
-        .main_file = "41_pointers3.zig",
+        .main_file = "041_pointers3.zig",
         .output = "foo=6, bar=11",
         .output = "foo=6, bar=11",
     },
     },
     .{
     .{
-        .main_file = "42_pointers4.zig",
+        .main_file = "042_pointers4.zig",
         .output = "num: 5, more_nums: 1 1 5 1",
         .output = "num: 5, more_nums: 1 1 5 1",
     },
     },
     .{
     .{
-        .main_file = "43_pointers5.zig",
+        .main_file = "043_pointers5.zig",
         .output = "Wizard (G:10 H:100 XP:20)",
         .output = "Wizard (G:10 H:100 XP:20)",
     },
     },
     .{
     .{
-        .main_file = "44_quiz5.zig",
+        .main_file = "044_quiz5.zig",
         .output = "Elephant A. Elephant B. Elephant C.",
         .output = "Elephant A. Elephant B. Elephant C.",
         .hint = "Oh no! We forgot Elephant B!",
         .hint = "Oh no! We forgot Elephant B!",
     },
     },
     .{
     .{
-        .main_file = "45_optionals.zig",
+        .main_file = "045_optionals.zig",
         .output = "The Ultimate Answer: 42.",
         .output = "The Ultimate Answer: 42.",
     },
     },
     .{
     .{
-        .main_file = "46_optionals2.zig",
+        .main_file = "046_optionals2.zig",
         .output = "Elephant A. Elephant B. Elephant C.",
         .output = "Elephant A. Elephant B. Elephant C.",
         .hint = "Elephants again!",
         .hint = "Elephants again!",
     },
     },
     .{
     .{
-        .main_file = "47_methods.zig",
+        .main_file = "047_methods.zig",
         .output = "5 aliens. 4 aliens. 1 aliens. 0 aliens. Earth is saved!",
         .output = "5 aliens. 4 aliens. 1 aliens. 0 aliens. Earth is saved!",
         .hint = "Use the heat ray. And the method!",
         .hint = "Use the heat ray. And the method!",
     },
     },
     .{
     .{
-        .main_file = "48_methods2.zig",
+        .main_file = "048_methods2.zig",
         .output = "A  B  C",
         .output = "A  B  C",
         .hint = "This just needs one little fix.",
         .hint = "This just needs one little fix.",
     },
     },
     .{
     .{
-        .main_file = "49_quiz6.zig",
+        .main_file = "049_quiz6.zig",
         .output = "A  B  C  Cv Bv Av",
         .output = "A  B  C  Cv Bv Av",
         .hint = "Now you're writting Zig!",
         .hint = "Now you're writting Zig!",
     },
     },
     .{
     .{
-        .main_file = "50_no_value.zig",
+        .main_file = "050_no_value.zig",
         .output = "That is not dead which can eternal lie / And with strange aeons even death may die.",
         .output = "That is not dead which can eternal lie / And with strange aeons even death may die.",
     },
     },
     .{
     .{
-        .main_file = "51_values.zig",
+        .main_file = "051_values.zig",
         .output = "1:false!. 2:true!. 3:true!. XP before:0, after:200.",
         .output = "1:false!. 2:true!. 3:true!. XP before:0, after:200.",
     },
     },
     .{
     .{
-        .main_file = "52_slices.zig",
+        .main_file = "052_slices.zig",
         .output = "Hand1: A 4 K 8 Hand2: 5 2 Q J",
         .output = "Hand1: A 4 K 8 Hand2: 5 2 Q J",
     },
     },
     .{
     .{
-        .main_file = "53_slices2.zig",
+        .main_file = "053_slices2.zig",
         .output = "'all your base are belong to us.' 'for great justice.'",
         .output = "'all your base are belong to us.' 'for great justice.'",
     },
     },
     .{
     .{
-        .main_file = "54_manypointers.zig",
+        .main_file = "054_manypointers.zig",
         .output = "Memory is a resource.",
         .output = "Memory is a resource.",
     },
     },
     .{
     .{
-        .main_file = "55_unions.zig",
+        .main_file = "055_unions.zig",
         .output = "Insect report! Ant alive is: true. Bee visited 15 flowers.",
         .output = "Insect report! Ant alive is: true. Bee visited 15 flowers.",
     },
     },
     .{
     .{
-        .main_file = "56_unions2.zig",
+        .main_file = "056_unions2.zig",
         .output = "Insect report! Ant alive is: true. Bee visited 16 flowers.",
         .output = "Insect report! Ant alive is: true. Bee visited 16 flowers.",
     },
     },
     .{
     .{
-        .main_file = "57_unions3.zig",
+        .main_file = "057_unions3.zig",
+        .output = "Insect report! Ant alive is: true. Bee visited 17 flowers.",
+    },
+    .{
+        .main_file = "057_unions3.zig",
         .output = "Insect report! Ant alive is: true. Bee visited 17 flowers.",
         .output = "Insect report! Ant alive is: true. Bee visited 17 flowers.",
     },
     },
 };
 };
@@ -548,8 +557,7 @@ const ZiglingStep = struct {
             zig_args.append(@tagName(builder.color)) catch unreachable;
             zig_args.append(@tagName(builder.color)) catch unreachable;
         }
         }
 
 
-        const zig_file = std.fs.path.join(builder.allocator, &[_][]const u8{
-            if (self.use_healed) "patches/healed" else "exercises", self.exercise.main_file }) catch unreachable;
+        const zig_file = std.fs.path.join(builder.allocator, &[_][]const u8{ if (self.use_healed) "patches/healed" else "exercises", self.exercise.main_file }) catch unreachable;
         zig_args.append(builder.pathFromRoot(zig_file)) catch unreachable;
         zig_args.append(builder.pathFromRoot(zig_file)) catch unreachable;
 
 
         zig_args.append("--cache-dir") catch unreachable;
         zig_args.append("--cache-dir") catch unreachable;

+ 0 - 0
exercises/01_hello.zig → exercises/001_hello.zig


+ 0 - 0
exercises/02_std.zig → exercises/002_std.zig


+ 0 - 0
exercises/03_assignment.zig → exercises/003_assignment.zig


+ 0 - 0
exercises/04_arrays.zig → exercises/004_arrays.zig


+ 0 - 0
exercises/05_arrays2.zig → exercises/005_arrays2.zig


+ 0 - 0
exercises/06_strings.zig → exercises/006_strings.zig


+ 0 - 0
exercises/07_strings2.zig → exercises/007_strings2.zig


+ 0 - 0
exercises/08_quiz.zig → exercises/008_quiz.zig


+ 0 - 0
exercises/09_if.zig → exercises/009_if.zig


+ 0 - 0
exercises/10_if2.zig → exercises/010_if2.zig


+ 0 - 0
exercises/11_while.zig → exercises/011_while.zig


+ 0 - 0
exercises/12_while2.zig → exercises/012_while2.zig


+ 0 - 0
exercises/13_while3.zig → exercises/013_while3.zig


+ 0 - 0
exercises/14_while4.zig → exercises/014_while4.zig


+ 0 - 0
exercises/15_for.zig → exercises/015_for.zig


+ 0 - 0
exercises/16_for2.zig → exercises/016_for2.zig


+ 0 - 0
exercises/17_quiz2.zig → exercises/017_quiz2.zig


+ 0 - 0
exercises/18_functions.zig → exercises/018_functions.zig


+ 0 - 0
exercises/19_functions2.zig → exercises/019_functions2.zig


+ 0 - 0
exercises/20_quiz3.zig → exercises/020_quiz3.zig


+ 0 - 0
exercises/21_errors.zig → exercises/021_errors.zig


+ 0 - 0
exercises/22_errors2.zig → exercises/022_errors2.zig


+ 0 - 0
exercises/23_errors3.zig → exercises/023_errors3.zig


+ 0 - 0
exercises/24_errors4.zig → exercises/024_errors4.zig


+ 0 - 0
exercises/25_errors5.zig → exercises/025_errors5.zig


+ 0 - 0
exercises/26_hello2.zig → exercises/026_hello2.zig


+ 0 - 0
exercises/27_defer.zig → exercises/027_defer.zig


+ 0 - 0
exercises/28_defer2.zig → exercises/028_defer2.zig


+ 0 - 0
exercises/29_errdefer.zig → exercises/029_errdefer.zig


+ 0 - 0
exercises/30_switch.zig → exercises/030_switch.zig


+ 0 - 0
exercises/31_switch2.zig → exercises/031_switch2.zig


+ 0 - 0
exercises/32_unreachable.zig → exercises/032_unreachable.zig


+ 0 - 0
exercises/33_iferror.zig → exercises/033_iferror.zig


+ 0 - 0
exercises/34_quiz4.zig → exercises/034_quiz4.zig


+ 0 - 0
exercises/35_enums.zig → exercises/035_enums.zig


+ 0 - 0
exercises/36_enums2.zig → exercises/036_enums2.zig


+ 0 - 0
exercises/37_structs.zig → exercises/037_structs.zig


+ 0 - 0
exercises/38_structs2.zig → exercises/038_structs2.zig


+ 0 - 0
exercises/39_pointers.zig → exercises/039_pointers.zig


+ 0 - 0
exercises/40_pointers2.zig → exercises/040_pointers2.zig


+ 0 - 0
exercises/41_pointers3.zig → exercises/041_pointers3.zig


+ 0 - 0
exercises/42_pointers4.zig → exercises/042_pointers4.zig


+ 0 - 0
exercises/43_pointers5.zig → exercises/043_pointers5.zig


+ 0 - 0
exercises/44_quiz5.zig → exercises/044_quiz5.zig


+ 0 - 0
exercises/45_optionals.zig → exercises/045_optionals.zig


+ 0 - 0
exercises/46_optionals2.zig → exercises/046_optionals2.zig


+ 0 - 0
exercises/47_methods.zig → exercises/047_methods.zig


+ 0 - 0
exercises/48_methods2.zig → exercises/048_methods2.zig


+ 0 - 0
exercises/49_quiz6.zig → exercises/049_quiz6.zig


+ 0 - 0
exercises/50_no_value.zig → exercises/050_no_value.zig


+ 0 - 0
exercises/51_values.zig → exercises/051_values.zig


+ 0 - 0
exercises/52_slices.zig → exercises/052_slices.zig


+ 0 - 0
exercises/53_slices2.zig → exercises/053_slices2.zig


+ 0 - 0
exercises/54_manypointers.zig → exercises/054_manypointers.zig


+ 0 - 0
exercises/55_unions.zig → exercises/055_unions.zig


+ 0 - 0
exercises/56_unions2.zig → exercises/056_unions2.zig


+ 0 - 0
exercises/57_unions3.zig → exercises/057_unions3.zig


+ 0 - 0
patches/patches/01_hello.patch → patches/patches/001_hello.patch


+ 0 - 0
patches/patches/02_std.patch → patches/patches/002_std.patch


+ 0 - 0
patches/patches/03_assignment.patch → patches/patches/003_assignment.patch


+ 0 - 0
patches/patches/04_arrays.patch → patches/patches/004_arrays.patch


+ 0 - 0
patches/patches/05_arrays2.patch → patches/patches/005_arrays2.patch


+ 0 - 0
patches/patches/06_strings.patch → patches/patches/006_strings.patch


+ 0 - 0
patches/patches/07_strings2.patch → patches/patches/007_strings2.patch


+ 0 - 0
patches/patches/08_quiz.patch → patches/patches/008_quiz.patch


+ 0 - 0
patches/patches/09_if.patch → patches/patches/009_if.patch


+ 0 - 0
patches/patches/10_if2.patch → patches/patches/010_if2.patch


+ 0 - 0
patches/patches/11_while.patch → patches/patches/011_while.patch


+ 0 - 0
patches/patches/12_while2.patch → patches/patches/012_while2.patch


+ 0 - 0
patches/patches/13_while3.patch → patches/patches/013_while3.patch


+ 0 - 0
patches/patches/14_while4.patch → patches/patches/014_while4.patch


+ 0 - 0
patches/patches/15_for.patch → patches/patches/015_for.patch


+ 0 - 0
patches/patches/16_for2.patch → patches/patches/016_for2.patch


+ 0 - 0
patches/patches/17_quiz2.patch → patches/patches/017_quiz2.patch


+ 0 - 0
patches/patches/18_functions.patch → patches/patches/018_functions.patch


+ 0 - 0
patches/patches/19_functions2.patch → patches/patches/019_functions2.patch


+ 0 - 0
patches/patches/20_quiz3.patch → patches/patches/020_quiz3.patch


+ 0 - 0
patches/patches/21_errors.patch → patches/patches/021_errors.patch


+ 0 - 0
patches/patches/22_errors2.patch → patches/patches/022_errors2.patch


+ 0 - 0
patches/patches/23_errors3.patch → patches/patches/023_errors3.patch


+ 0 - 0
patches/patches/24_errors4.patch → patches/patches/024_errors4.patch


+ 0 - 0
patches/patches/25_errors5.patch → patches/patches/025_errors5.patch


+ 0 - 0
patches/patches/26_hello2.patch → patches/patches/026_hello2.patch


+ 0 - 0
patches/patches/27_defer.patch → patches/patches/027_defer.patch


+ 0 - 0
patches/patches/28_defer2.patch → patches/patches/028_defer2.patch


+ 0 - 0
patches/patches/29_errdefer.patch → patches/patches/029_errdefer.patch


+ 0 - 0
patches/patches/30_switch.patch → patches/patches/030_switch.patch


+ 0 - 0
patches/patches/31_switch2.patch → patches/patches/031_switch2.patch


+ 0 - 0
patches/patches/32_unreachable.patch → patches/patches/032_unreachable.patch


+ 0 - 0
patches/patches/33_iferror.patch → patches/patches/033_iferror.patch


+ 0 - 0
patches/patches/34_quiz4.patch → patches/patches/034_quiz4.patch


+ 0 - 0
patches/patches/35_enums.patch → patches/patches/035_enums.patch


+ 0 - 0
patches/patches/36_enums2.patch → patches/patches/036_enums2.patch


+ 0 - 0
patches/patches/37_structs.patch → patches/patches/037_structs.patch


+ 0 - 0
patches/patches/38_structs2.patch → patches/patches/038_structs2.patch


+ 0 - 0
patches/patches/39_pointers.patch → patches/patches/039_pointers.patch


+ 0 - 0
patches/patches/40_pointers2.patch → patches/patches/040_pointers2.patch


+ 0 - 0
patches/patches/41_pointers3.patch → patches/patches/041_pointers3.patch


+ 0 - 0
patches/patches/42_pointers4.patch → patches/patches/042_pointers4.patch


+ 0 - 0
patches/patches/43_pointers5.patch → patches/patches/043_pointers5.patch


+ 0 - 0
patches/patches/44_quiz5.patch → patches/patches/044_quiz5.patch


+ 0 - 0
patches/patches/45_optionals.patch → patches/patches/045_optionals.patch


+ 0 - 0
patches/patches/46_optionals2.patch → patches/patches/046_optionals2.patch


+ 0 - 0
patches/patches/47_methods.patch → patches/patches/047_methods.patch


+ 0 - 0
patches/patches/48_methods2.patch → patches/patches/048_methods2.patch


+ 0 - 0
patches/patches/49_quiz6.patch → patches/patches/049_quiz6.patch


+ 0 - 0
patches/patches/50_no_value.patch → patches/patches/050_no_value.patch


+ 0 - 0
patches/patches/51_values.patch → patches/patches/051_values.patch


+ 0 - 0
patches/patches/52_slices.patch → patches/patches/052_slices.patch


+ 0 - 0
patches/patches/53_slices2.patch → patches/patches/053_slices2.patch


+ 0 - 0
patches/patches/54_manypointers.patch → patches/patches/054_manypointers.patch


+ 0 - 0
patches/patches/55_unions.patch → patches/patches/055_unions.patch


+ 0 - 0
patches/patches/56_unions2.patch → patches/patches/056_unions2.patch


+ 0 - 0
patches/patches/57_unions3.patch → patches/patches/057_unions3.patch