{}
See how a CS professor is using our compiler for class assignment.
Try Programiz PRO for Educators!
Learn DSA with step-by-step code visualization.
Try Programiz PRO for Educators!
run-icon
main.go
package main import ( "fmt" "reflect" ) func main() { foo := [][]int{{1, 2}, {2, 3}} baa := []int{1, 2} if reflect.DeepEqual(foo[0], baa) { fmt.Println("true") } else { fmt.Println("false") } }
Output