They’re both really close; the only thing you have to change in the one with append
is to set mat4
to a [][]float64
, not a []float64
, and then add the index, i
, to your mat4
slice of slices when you loop through mat1
: The Go Playground
1 Like