I would like to know what is the common way to create a sorted list of random numbers in Common Lisp. In Clojure, this is pretty simple:
(sort (take 10 (repeatedly
I found that the following works in CL:
(sort (loop for n below 10 collect (random 10))
but not readable. Is there a cleaner way to express the same thing?
source
share