hilbert-0.0.0.1: Calculate points on an arbitrary Hilbert curve

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Algorithm.Hilbert.Types

Contents

Synopsis

Types for pointToIndex

boolToNum :: [Bool] -> Maybe PrecisionNum Source

Convert a list of Bool representation of an integer to an integer. For example, to obtain an integer from its binary representation: Assumes that the precision of the returned value should be equal to the number of bits that were provided. > boolToNum [False, True, True, True] > = 14