Exemple #1
0
        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);
        }
Exemple #2
0
 public virtual Utils.CompareProc <T> GetProc(IComparisonOperation procName)
 {
     return(procCmp[procName.GetType()]);
 }