With copy () function to delete the beginning of the element:
- a = []int{1, 2, 3}
- a = a [: copy (a, a [1:])] // delete the beginning of an element
- a = a [: copy (a, a [N:])] // delete the beginning of the N elements
!!!!
With copy () function to delete the beginning of the element:
!!!!