<?arrow> ( model quot -- ?arrow )


Vocabulary
models.arrow

Inputs
modela model
quota quotation with stack effect ( obj -- newobj )


Outputs
?arrowa new ?arrow


Word description
Creates a new instance of ?arrow. The value of the new arrow model is computed by applying the quotation to the value, but only set if the value actually changed. This prevents connected observers from being updated if the value did not change since the last update.

Examples
See the example in the documentation for arrow.

Definition

: <?arrow> ( model quot -- ?arrow ) ?arrow new-arrow ;