Files
2019-08-23 10:23:42 +03:00

429 B

Hints

You can use the following slice operations to solve the exercise:

  • Prepends "value" to the slice:

    slice = append([]string{"value"}, slice...)
    
  • Appends some part (N to M) of the same slice to itself:

    slice = append(slice, slice[N:M]...)
    
  • Copies the last part of the slice starting from M to the first part of the slice until N:

    slice = append(slice[:N], slice[M:]...)