package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Nov 25, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
¶
Documentation
¶
type Array[T any] struct {
}
Array is a generic 2D array.
New creates empty array with given dimensions.
Bounds returns width and height of array.
func (a *Array[T]) Fill(fn func() T)
Fill fills array with given function.
Get returns value at given coords, if any.
Iter iterates over array items.
Len returns length of array.
Set sets value at given coords.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.