zwirn-core-0.1.1.0: library for manipulating functions of time.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Zwirn.Core.Cord

Synopsis

Documentation

liftList :: ([Tree (Value i a, st)] -> [Tree (Value i b, st)]) -> Cord st i a -> Cord st i b Source #

liftListWithTimeState :: (Time -> st -> [Tree (Value i a, st)] -> [Tree (Value i b, st)]) -> Cord st i a -> Cord st i b Source #

depth :: Cord st i a -> Cord st i Int Source #

get the current depth of the cord

stack :: [Cord st i a] -> Cord st i a Source #

group a list of cords

project :: Cord st i Int -> Cord st i a -> Cord st i a Source #

project cord on specific index

layer :: Cord st i (Cord st i a -> Cord st i b) -> Cord st i a -> Cord st i b Source #

layer functions over an input

insert :: Cord st i Int -> Cord st i a -> Cord st i a -> Cord st i a Source #

insert cord a specific index

remove :: Cord st i Int -> Cord st i a -> Cord st i a Source #

remove cord at specific index

at :: Cord st i Int -> Cord st i (Cord st i a -> Cord st i a) -> Cord st i a -> Cord st i a Source #

apply function to specific index

arp :: Cord st i a -> Cord st i a Source #

reverseC :: Cord st i a -> Cord st i a Source #

rotateC :: Cord st i a -> Cord st i a Source #

invertC :: Num a => Cord st i a -> Cord st i a Source #

enumFromToStack :: (Ord a, Num a) => Cord st i a -> Cord st i a -> Cord st i a Source #

enumFromThenToStack :: (Ord a, Num a) => Cord st i a -> Cord st i a -> Cord st i a -> Cord st i a Source #

Orphan instances

HasSilence Tree Source # 
Instance details

Methods

silence :: ZwirnT Tree st i a Source #