Documentation ¶ Index ¶ func Has(m M, n int) bool type M Examples ¶ Has Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Has ¶ func Has(m M, n int) bool Example ¶ package main import ( "fmt" "github.com/skhal/lab/iq/31/matrix" ) func main() { m := matrix.M{ 0: []int{1, 2, 4}, 1: []int{4, 5, 7}, } fmt.Println(matrix.Has(m, 3)) fmt.Println(matrix.Has(m, 5)) } Output: false true Share Format Run Types ¶ type M ¶ type M map[int][]int Source Files ¶ View all Source files has.go Click to show internal directories. Click to hide internal directories.