haskell - What is a Sample in Helm? -


there doesn't seem documentation sample a in haskell frp library helm. trying write function similar sample on in elm , think update help. confused how update works because, source code here, seems variable p not used @ all.

what should function doing , why input p included if isn't used? there better way this? think seq work, tried implementing animation seq , doesn't thing looking for.

probably first argument there exists historical reasons or consistency other functions offered helm; don't know enough either sure.

the intended use of update function seems to wrap appropriate constructor around argument: update p s result in either changed a or unchanged a depending on whether a matches value stored in s. 1 might use this, example, argument foldp:

foldp (update undefined) :: eq => sample -> signal -> signal (sample a) 

downstream signals ignore unchanged values easily.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -