Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The chained notation allows you to easily apply a sequence of functions to a value, simply by listing each function one after the other, separated by a ( . ) dot.

  • Standard notation: F3(F2(F1(x)))

  • Chain notation: x.F1().F2().F3()

When you use the chain notation, the value that comes before the dot becomes the first argument for the function. If the function takes multiple arguments, the rest of the arguments must be written in parentheses.

...