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

Copyright(c) Amy de Buitléir 2012-2014
LicenseBSD-style
Maintaineramy@nualeargais.ie
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

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) 
type BaseGrid (LGridMap g) v = g 
type Rep (LGridMap g v) 
type Size (LGridMap g v) = Size g 
type Index (LGridMap g v) = Index g 
type Direction (LGridMap g v) = Direction g 

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

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