Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- data Coords a = Coords a a a
- coordsFromString :: [[String]] -> [Coords Int]
- coordsFrom2LayerString :: [String] -> [Coords Int]
- numberOf2LayerAtoms :: [[String]] -> Int
- forNestedCoords :: (Enum a, Num a) => ([z] -> b) -> ([y] -> z) -> ([x] -> y) -> (Coords a -> x) -> Coords a -> b
- newtype PackedCoords = PackedCoords Int
- dx :: Num a => Coords a -> Coords a
- dy :: Num a => Coords a -> Coords a
- dz :: Num a => Coords a -> Coords a
- rotations :: Num a => [Coords a -> Coords a]
- type Size = Coords Int
- unpackCoords :: Size -> PackedCoords -> Coords Int
- packCoords :: Size -> Coords Int -> PackedCoords
- normalForm :: (Ord a, Num a) => [Coords a] -> [Coords a]
- size :: [Coords Int] -> Coords Int
- move :: Coords Int -> [Coords Int] -> [Coords Int]
- allPositions :: Size -> [Coords Int] -> [[Coords Int]]
- allOrientations :: (Num a, Ord a) => [Coords a] -> [[Coords a]]
Documentation
Coords a a a |
numberOf2LayerAtoms :: [[String]] -> Int Source #
forNestedCoords :: (Enum a, Num a) => ([z] -> b) -> ([y] -> z) -> ([x] -> y) -> (Coords a -> x) -> Coords a -> b Source #
newtype PackedCoords Source #
unpackCoords :: Size -> PackedCoords -> Coords Int Source #
packCoords :: Size -> Coords Int -> PackedCoords Source #