public static Atom Sum(Atom args, Context context) { CheckAllNumbers(args); object res = ((Atom)args?.value).value; for (Atom iter = args.next; iter != null; iter = iter.next) { res = UNumber.Sum(res, ((Atom)iter.value).value); } return(new Atom(AtomType.Number, res)); }