Description Usage Arguments Value
Use this variant of rx_calc
when your logic depends on the
previous value you generated. For example, you might want to accumulate some
state over each invalidation; or in some exceptional circumstances you may
want to return the previous value itself with no changes.
1 | rx_calc_with_previous(func, initialValue = NULL)
|
func |
A function that takes a single parameter. Each time this function is called, it will be passed its previous return value. |
initialValue |
The value to pass to the function the first time it is called. |
An rx_calc
based on the function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.