37. Go - Multi-dimensional Slices

A table that holds another table is multi-dimensional.

package main

import "fmt"

func main() {
    num := []int{1, 2}
    nump := []int{3, 4}
    x := [][]int{num, nump}
    fmt.Println(x)
}


Comments

Popular posts from this blog

2. FreeCodeCamp - Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges

20. Data Analytics - Analyze Data to Answer Questions - Week 1

3. Algorithms - Selection Sort