From c6016fffcf6ecfbfacb18f146e2ce7b5d667d724 Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Thu, 12 Jan 2023 13:36:50 +0000 Subject: bug fix plus-decimal plus-earth --- plus.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plus.lisp b/plus.lisp index 0b49201..6e3dc72 100644 --- a/plus.lisp +++ b/plus.lisp @@ -75,8 +75,8 @@ (defun plus-decimal (&rest args) "Given decimal numbers, it returns the symbol it's sum." - (nth-value 0 (implode-from-symbol (reduce (lambda (a b) (plus '(|0| |1| |2| |3| |4| |5| |6| |7| |8| |9|) a b)) args)))) + (nth-value 0 (implode-from-symbol (may-reverse (reduce (lambda (a b) (plus-args-list '(|0| |1| |2| |3| |4| |5| |6| |7| |8| |9|) a b)) (mapcar #'may-reverse (mapcar #'explode-to-symbol args))))))) (defun plus-earth (&rest args) "Give earthal numbers, it returns it's sum." - (symbol-to-number (nth-value 0 (implode-from-symbol (reduce (lambda (a b) (plus '(|1| |2| |3| |4| |5|) a b)) args))))) + (symbol-to-number (nth-value 0 (implode-from-symbol (may-reverse (reduce (lambda (a b) (plus-args-list '(|1| |2| |3| |4| |5|) a b)) (mapcar #'may-reverse (mapcar #'explode-to-symbol args)))))))) -- cgit 1.4.1-2-gfad0