IFunction

An interface for expression functions.

Description

The IFunction is an interface for expression functions.

Methods

Calculate

Function calculation method.

Calculate(parameters []*Variant, variantOperations IVariantOperations) (*Variant, error)

  • params: []*Variant - array with function parameters.
  • variantOperations: IVariantOperations - variants operations manager.
  • returns: (*Variant, error) - returned function’s result.

Name

Function’s name.

Name() string

  • retuns: string - function’s name.