Class

EvalChain

EvalChain()

Constructor

# new EvalChain()

create an evaluation chain.

Methods

# Add(f)

add a function to the chain.

Parameters:
Name Type Description
f function

a function to be called by the chain.

# Clear()

empty the chain, regardless of the remaining steps

# Size() → {number}

number of entries in the chain.

number

# Step() → {boolean}

execute the next function (if any).

true if there were any functions to execute, else false.

boolean