Set Value at Index

Set value at index in a list.

Examples in Go
package main

import (
	"fmt"
)

func main() {
	s := []int{1, 2, 3, 4, 5}
	s[2] = 999
	fmt.Println(s)
}
Last Run  :
[1 2 999 4 5]