Array change value



examples/array-change-value/array_change_value.go
package main

import (
    "fmt"
)

func main() {
    var res = [3]int{1, 2, 3}

    fmt.Println(res)
    res[1] = 42
    fmt.Println(res)
}

examples/array-change-value/array_change_value.out
[1 2 3]
[1 42 3]