mirror of
				https://codeberg.org/ziglings/exercises.git
				synced 2025-11-04 04:35:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			617 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			617 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- exercises/005_arrays2.zig	2023-10-03 22:15:22.122241138 +0200
 | 
						|
+++ answers/005_arrays2.zig	2023-10-05 20:04:06.862763262 +0200
 | 
						|
@@ -25,12 +25,12 @@
 | 
						|
     // (Problem 1)
 | 
						|
     // Please set this array concatenating the two arrays above.
 | 
						|
     // It should result in: 1 3 3 7
 | 
						|
-    const leet = ???;
 | 
						|
+    const leet = le ++ et;
 | 
						|
 
 | 
						|
     // (Problem 2)
 | 
						|
     // Please set this array using repetition.
 | 
						|
     // It should result in: 1 0 0 1 1 0 0 1 1 0 0 1
 | 
						|
-    const bit_pattern = [_]u8{ ??? } ** 3;
 | 
						|
+    const bit_pattern = [_]u8{ 1, 0, 0, 1 } ** 3;
 | 
						|
 
 | 
						|
     // Okay, that's all of the problems. Let's see the results.
 | 
						|
     //
 |