Class Operation

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(op: any, operands: any): Operation

Parameters

  • op: any
  • operands: any

Returns

Operation

Properties

public op: string

public operands: IEvalable

Methods

public eval(env: Options): IEvalable

Parameters

Returns

IEvalable

public operate(op: string, a: number, b: number): number

Parameters

  • op: string
  • a: number
  • b: number

Returns

number