Functional Reactive Programming by Stephen Blackheath Anthony Jones

Functional Reactive Programming by Stephen Blackheath Anthony Jones

Author:Stephen Blackheath Anthony Jones [Stephen Blackheath Anthony Jones]
Language: eng
Format: epub, pdf
Tags: Core Programming, JavaScript
Publisher: Manning Publications
Published: 2016-08-04T21:00:00+00:00


The first thing we’ll look at is the mole itself, in listing 7.9. It’s the same basic idea as the zombie and human characters in the previous example, except you don’t need a view of the world because moles are blind. Here are the inputs:

Unique ID for the mole.

Constant x-y position.

Animation clock. You’re treating this as both a stream and a cell. This isn’t in the spirit of FRP, but it allows you to represent the animation clock in a single variable, which is arguably an advantage.

sClick stream to indicate that the user clicked the mole.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.