Atom.apex

  • Docs
  • Tutorials
Docs Menu
  • Atom
    • Compute
  • Step
    • State
    • Function
  • Monitor
    • Methods

Function Guide

Function

Atom Function

Atom.apex provides helper functions to wrap existing functions.

compute

Compute the given Func with arguments from the state and set the value back

Func f = Atom.F.compute.apply('count', R.inc, 'count');
// Get the 'count', increment it and set the value back to 'count'

Func f = Atom.F.compute.apply(R.inc, 'count');
// Get the 'count', increment it and do not set it back

Contribute on Github! Edit this section.