IndexedList-0.1.0.1: Length- and element-indexed lists sitting somewhere between homogeneous and fully heterogeneous.

CopyrightCopyright (c) 2014 Kenneth Foner
Maintainerkenneth.foner@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.List.Indexed

Description

This module re-exports the ConicList and CountedList types and functions to work with them.

Synopsis

Documentation

heterogenize :: (a -> f t) -> CountedList n a -> ConicList f (Replicate n t) Source

Turn a CountedList into a ConicList by means of a function from some a to an (f t).

homogenize :: (forall t. f t -> a) -> ConicList f ts -> CountedList (Length ts) a Source

Given a function to collapse any (f t) into an a, turn a ConicList into a CountedList.