>> Parenthesis sometimes unneccessarily seem to keep people away from Lisp as 
>> "all day programming language".

Javascript:
const superSize = n => +n.toString().split('').sort((a, b) => b - a).join('')

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

Same number of parens in Lisp and in JS but *way* more readable.

(from https://dev.to/thepracticaldev/daily-challenge-177-supersize-me-3fhl)

People need to be shown what they really do in daily life and how that affects 
their perception of the world... :)



Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune



--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to