Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reduce ¶
func Reduce[T comparable, V any, S Space[T]](s S, acc V, f ReduceFunc[T, V]) V
Types ¶
type FilterFunc ¶
type FilterFunc[T comparable] func(p Point[T]) bool
type MapFunc ¶
type MapFunc[T, V comparable] func(p Point[T]) Point[V]
type NeighborMode ¶
type NeighborMode int
const ( // Cardinal mode only targets direct North/South/East/West adjacent Locations NeighborModeCardinal NeighborMode = iota // Full mode includes Cardinal neighbors as well as diagonal ones NeighborModeFull )
type ReduceFunc ¶
type ReduceFunc[T comparable, V any] func(p Point[T], r V) V
type Space1D ¶
type Space1D[T comparable] map[int]Point[T]
func Filter1D ¶
func Filter1D[T comparable](s Space1D[T], f FilterFunc[T]) Space1D[T]
type Space2D ¶
type Space2D[T comparable] map[int]Space1D[T]
func Filter2D ¶
func Filter2D[T comparable](s Space2D[T], f FilterFunc[T]) Space2D[T]
type Space3D ¶
type Space3D[T comparable] map[int]Space2D[T]
func Filter3D ¶
func Filter3D[T comparable](s Space3D[T], f FilterFunc[T]) Space3D[T]
type Space4D ¶
type Space4D[T comparable] map[int]Space3D[T]
func Filter4D ¶
func Filter4D[T comparable](s Space4D[T], f FilterFunc[T]) Space4D[T]
Click to show internal directories.
Click to hide internal directories.