public List <object> Reduce() { var reduced = new List <object>(); reduced.AddRange(Factor.Reduce()); if (FactorRec != null) { reduced.AddRange(FactorRec.Reduce()); } return(reduced); }
public List <object> Reduce() { var reduced = new List <object>(); reduced.AddRange(Factor.Reduce()); reduced.Add(Operation); if (Rec == null) { return(reduced); } reduced.AddRange(Rec.Reduce()); return(reduced); }