DEV Community

loading...

Discussion on: Daily Challenge #177 - Supersize Me

Collapse
brandelune profile image
Jean-Christophe Helary

emacs lisp is shorter than common lisp (no need to "extract" the first value of parse-integer)

(defun superSize (n) (string-to-number (seq-sort #'> (number-to-string n))))

and has as few parens as @savagepixie 's JS solution :-)