]> gitweb.factorcode.org Git - factor.git/blob - extra/ui/frp/functors/functors-docs.factor
"<$" made generic + moved to monads
[factor.git] / extra / ui / frp / functors / functors-docs.factor
1 USING: help.markup help.syntax ui.frp.signals ;
2 IN: ui.frp.functors
3
4 ARTICLE: { "ui.frp.functors" "signal-collection" } "Signal Collection"
5 "While " { $vocab-link "models.arrow.smart" } " use arrows and products to apply a quotation to the values of more than one signal, frp has more than one kind of arrow, as well as more than one kind of product" $nl
6 "A simple pattern is used to generate the requisite 'smart mapping' functions: "
7 "if 'word' maps a function on a model, then '2word; would map on two models. "
8 "The product is specified on the end: '2word-product'. " { $link | } " updates when any of the model it collects updates, while " { $link & } " updates when all dependencies have new values. "
9 "Examples of collection functions are 2fmap-| and 2$>-&" ;
10 ABOUT: { "ui.frp.functors" "signal-collection" }