diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2022-12-12 20:54:47 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2022-12-12 20:54:47 +0200 |
commit | 1f1b7f0209b3a07293afd0540c0d51d56f3a028f (patch) | |
tree | d6d685a0bbce5da2d71f6e2780f0db7053993e09 | |
parent | 64abe133c1880bc0dd5bce5bc67c94bf2f083467 (diff) | |
download | gcd-1f1b7f0209b3a07293afd0540c0d51d56f3a028f.tar.gz |
-rw-r--r-- | gcd.lisp | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -15,15 +15,13 @@ (defun program-args () (or #+CLISP *args* - #+ECL (ext:command-args) - #+GCL si::*command-args* - #+SBCL *posix-argv* + #+ECL (cdr ext:*unprocessed-ecl-command-args*) + #+GCL (cdr si::*command-args*) + #+SBCL (cdr *posix-argv*) nil)) (defun numbers () - (remove nil - (map 'list (lambda (x) (parse-integer x :junk-allowed t)) - (program-args)))) + (mapcar #'parse-integer (program-args))) (let ((ns (numbers))) (when ns |