Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. holdFor :: Double -> Wire m (Event (These Double a)) a
  2. holdFor = proc x -> do
  3. rec curTime <- scan 0 -< these id (+) (const (+)) x
  4. lastTriggered <- -< these const (id) (const id) x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement