diff options
-rw-r--r-- | cl-math.lisp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cl-math.lisp b/cl-math.lisp index 6a92c3f..5eae31d 100644 --- a/cl-math.lisp +++ b/cl-math.lisp @@ -1,6 +1,6 @@ ;;; plus one function -(defvar *number-units-beginning* nil) +(defvar *number-units-at-beginning* nil) (defun next-digit (numerals digit) "Given a list of a numeral system and a digit, it returns the next digit." @@ -11,7 +11,7 @@ (defun may-reverse (number) "If units is placed on the end, reverse; else keep it." - (if *number-units-beginning* + (if *number-units-at-beginning* number (reverse number))) |