matrix

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Examples

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

Types

type M

type M map[int][]int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL