public virtual IBoolean Compare(IComparisonOperation procName, List <INumber> operands) { var operandList = operands.ConvertAll(x => x as T); var accProc = procCmp[procName.GetType()]; var res = Utils.CompareList(accProc, operandList); if (res) { return(ScmTrueValue.Instance); } return(ScmFalseValue.Instance); }
public virtual Utils.CompareProc <T> GetProc(IComparisonOperation procName) { return(procCmp[procName.GetType()]); }