quadratic-irrational-0.0.5: An implementation of quadratic irrationals

Copyright© 2014 Johan Kiviniemi
LicenseMIT
MaintainerJohan Kiviniemi <devel@johan.kiviniemi.name>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numeric.QuadraticIrrational.CyclicList

Description

 

Synopsis

Documentation

data CycList a Source

A container for a possibly cyclic list.

>>> toList (NonCyc "hello")
"hello"
>>> take 70 (toList (Cyc "prefix " 'c' "ycle"))
"prefix cyclecyclecyclecyclecyclecyclecyclecyclecyclecyclecyclecyclecyc"

Constructors

NonCyc [a]

A non-cyclic list.

Cyc [a] a [a]

A non-cyclic list followed by the head of a cyclic list followed by the tail of the cyclic list.

Instances

Functor CycList 
Foldable CycList 
Eq a => Eq (CycList a) 
Ord a => Ord (CycList a) 
Read a => Read (CycList a) 
Show a => Show (CycList a)