rhine-1.0: Functional Reactive Programming with type-level clocks
Safe HaskellSafe-Inferred
LanguageHaskell2010

FRP.Rhine.ResamplingBuffer.KeepLast

Description

A buffer keeping the last value, or zero-order hold.

Synopsis

Documentation

keepLast :: Monad m => a -> ResamplingBuffer m cl1 cl2 a a Source #

Always keeps the last input value, or in case of no input an initialisation value. If cl2 approximates continuity, this behaves like a zero-order hold.