mirror of
				https://codeberg.org/ziglings/exercises.git
				synced 2025-11-03 20:25:37 +00:00 
			
		
		
		
	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.
		
			
				
	
	
		
			22 lines
		
	
	
		
			504 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			504 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
8,19d7
 | 
						|
< // We also introduce the handy ".?" shortcut:
 | 
						|
< //
 | 
						|
< //     const foo = bar.?;
 | 
						|
< //
 | 
						|
< // is the same as
 | 
						|
< //
 | 
						|
< //     const foo = bar orelse unreachable;
 | 
						|
< //
 | 
						|
< // See if you can find where we use this shortcut below.
 | 
						|
< //
 | 
						|
< // Now let's make those elephant tails optional!
 | 
						|
< //
 | 
						|
24c12
 | 
						|
<     tail: *Elephant = null, // Hmm... tail needs something...
 | 
						|
---
 | 
						|
>     tail: ?*Elephant = null, // <---- make this optional!
 | 
						|
54c42
 | 
						|
<         if (e.tail == null) ???;
 | 
						|
---
 | 
						|
>         if (e.tail == null) break;
 |