Versions Compared

Key

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

...

Code Block
languagejavascript
themeConfluence
a.split(re#;#).length()

Operators are syntactic sugar for normal function application. The left hand of the period (.) is inserted as the first argument of the function call. For example

Code Block
languagejavascript
themeConfluence
foo = function (self, arg1, arg2) {
  // `self` is the left hand side of `.`
}

// then use it
"something".foo(1, 2)
// which is the same as
foo("something", 1, 2)

// Another example:
a.split(re#;#).length()
// is the same as
length(split(a, re#;#))

The following sections describe operators currently available. They are organized based on the kind of value on which they operate.

...