toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Utils.Unindex

Description

Handy, more restricted Ix with reverse conversion, fast monadic iteration and unboxing.

Documentation

class (Ix i, Unbox i) => Unindex i where #

Methods

unindex :: (i, i) -> Int -> i #

\(O(D)\)

Instances

Instances details
Unindex Int # 
Instance details

Defined in Data.Utils.Unindex

Methods

unindex :: (Int, Int) -> Int -> Int #

Unindex ((Int, Int), (Int, Int)) # 
Instance details

Defined in Data.Utils.Unindex

Methods

unindex :: (((Int, Int), (Int, Int)), ((Int, Int), (Int, Int))) -> Int -> ((Int, Int), (Int, Int)) #

Unindex (Int, Int) # 
Instance details

Defined in Data.Utils.Unindex

Methods

unindex :: ((Int, Int), (Int, Int)) -> Int -> (Int, Int) #

Unindex (Int, Int, Int) # 
Instance details

Defined in Data.Utils.Unindex

Methods

unindex :: ((Int, Int, Int), (Int, Int, Int)) -> Int -> (Int, Int, Int) #

Unindex (Int, Int, Int, Int) # 
Instance details

Defined in Data.Utils.Unindex

Methods

unindex :: ((Int, Int, Int, Int), (Int, Int, Int, Int)) -> Int -> (Int, Int, Int, Int) #