Solution Review: Magnify a Slice
This lesson discusses the solution to the challenge given in the previous lesson.
We'll cover the following...
We'll cover the following...
In the code above, look at the header for function enlarge at line 15: func enlarge(s []int, factor int) []int . It takes a slice s that needs to be magnified, and a factor to decide the length of a magnified slice as len(s)*factor. ...