Flusspferd API and module docs

namespace util

Description

Utilities that are always avilable in flusspferd.

Methods

Class methods

  • Range #

    util.Range(form, to[, increment=1]) ⇒ Iterator
    • from (Number) – start of the range
    • end (Number) – end of the range (non-inclusive)
    • increment (Number) – increment value by this amount each loop.

    Create an iterable object returning all objects in a range, starting at “from”, up to (not including) “to”, incrementing by “by” in each step.

    Example
    for (i in require('util').Range(2,10)) {
      print(i); // Prints 2 through 9
    }