lazyEval method

  1. @override
LazyNumber lazyEval(
  1. List<LazyNumber?> lazyParams
)
override

Lazily evaluate this function.

lazyParams - The accepted parameters. Returns the lazy result of this function.

Implementation

@override
LazyNumber lazyEval(List<LazyNumber?> lazyParams) {
  List<LazyNumber> params = [];

  for (int i = 0; i < lazyParams.length; i++) {
    if (lazyParams[i] == null) {
      throw new AssertionError("Operand #${i + 1} may not be null.");
    }

    params.add(lazyParams[i]!);
  }

  return fEval(params);
}