Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 317 Bytes

exercise.md

File metadata and controls

12 lines (8 loc) · 317 Bytes

Slices

Objectives

  1. Why do we need slices if we have arrays?
  2. How to define an empty slice of strings called someSlice?
  3. What the following lines does? append(someSlice, 'abc')
  4. How to retrieve the first element of the slice someSlice?

Solution

Click here to view the solution.