21 lines
		
	
	
		
			582 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			582 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package main
 | |
| 
 | |
| // ---------------------------------------------------------
 | |
| // EXERCISE: Refactor to Array Literals
 | |
| //
 | |
| //  1. Use the 02-get-set-arrays exercise
 | |
| //
 | |
| //  2. Refactor the array assignments to array literals
 | |
| //
 | |
| //    1. You would need to change the array declarations to array literals
 | |
| //
 | |
| //    2. Then, you would need to move the right-hand side of the assignments,
 | |
| //       into the array literals.
 | |
| //
 | |
| // EXPECTED OUTPUT
 | |
| //   The output should be the same as the 02-get-set-arrays exercise.
 | |
| // ---------------------------------------------------------
 | |
| 
 | |
| func main() {
 | |
| }
 |