Insert Value at Start
Insert a value at the start of the list.
Examples
Filter
package main
import (
"fmt"
)
func main() {
s := []int{1, 2, 3, 4, 5}
s = append([]int{-99}, s...)
fmt.Println(s)
}
Last Run
:
[-99 1 2 3 4 5]