autolib-util
Safe HaskellNone
LanguageHaskell98

Autolib.Ana

Description

anamorphism

Synopsis

Documentation

ana :: (a -> Maybe (b, a)) -> a -> [b] Source #

compute anamorphism (construct list)

based :: Integral b => b -> b -> [b] Source #

find list of digits w.r.t. base

unbased :: Integral b => b -> [b] -> b Source #

convert from list of digits to number