quadratic-irrational-0.0.5: An implementation of quadratic irrationals

Portabilityportable
Stabilityprovisional
MaintainerJohan Kiviniemi <devel@johan.kiviniemi.name>
Safe HaskellSafe-Inferred

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)