This program has a button and a numeric display. Pressing the button increments the number in the display.
Here is the source code:
listF
than
>+<
.
The argument to listF
is a list of pairs of
adresses and fudgets. The adresses are then used when you
send messages to and receive messages from the components
in the composition.
Buttons
, the elements of which are used as the adresses of
the buttons. The messages received by the count
function
are pairs of Button
values and Click
s.