arrow
Models > Arrow models

Next:<arrow> ( model quot -- arrow )


Vocabulary
models.arrow

Class description
Arrow model values are computed by applying a quotation to the value of another model. Arrows are automatically updated when the underlying model changes. Arrows are constructed by <arrow>.

Examples
The following code displays a label showing the result of applying sq to the value 5:
USING: models models.arrow math.parser ui.gadgets.labels ui.gadgets.panes ; 5 <model> [ sq ] <arrow> [ number>string ] <arrow> <label-control> gadget.

An exercise for the reader is to keep the original model around on the stack, and change its value to 6, observing that the label will immediately display 36.

Definition


Methods