19 lines
		
	
	
		
			491 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			491 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package main
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// ---------------------------------------------------------
							 | 
						||
| 
								 | 
							
								// EXERCISE: Refactor to Ellipsis
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								//  1. Use the 03-array-literal exercise
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								//  2. Refactor the length of the array literals to ellipsis
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								//    This means: Use the ellipsis instead of defining the array's length
							 | 
						||
| 
								 | 
							
								//                manually.
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								// EXPECTED OUTPUT
							 | 
						||
| 
								 | 
							
								//   The output should be the same as the 03-array-literal exercise.
							 | 
						||
| 
								 | 
							
								// ---------------------------------------------------------
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func main() {
							 | 
						||
| 
								 | 
							
								}
							 |