grid-7.6: Tools for working with regular grids (graphs, lattices).

Portabilityportable
Stabilityexperimental
Maintaineramy@nualeargais.ie
Safe HaskellSafe-Inferred

Math.Geometry.GridMap.Lazy

Description

Ordered maps from tiles on a grid to values. This module is a wrapper around Grid and Map, in order to combine the functionality of grids and maps into a single type.

Synopsis

Documentation

data LGridMap g v Source

A map from tile positions in a grid to values.

Instances

(Grid g, Ord (Index g)) => Functor (LGridMap g) 
Foldable (LGridMap g) 
Grid g => GridMap (LGridMap g) v 
(Eq g, Eq (Index g), Eq v) => Eq (LGridMap g v) 
(Show g, Show v) => Show (LGridMap g v) 
Generic (LGridMap g v) 
FiniteGrid g => FiniteGrid (LGridMap g v) 
Grid g => Grid (LGridMap g v) 

lazyGridMap :: (Ord (Index g), Grid g) => g -> [v] -> LGridMap g vSource

Construct a grid map which is strict in the keys (tile positions), but lazy in the values.