Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

laba4

(defun sortList (lst)
 (cond ((null lst) nil)
    (T (append (sortList (remove-if (lambda (x) (> (car lst) x)) (cdr lst)))
       (list (car lst))
               (sortList (remove-if (lambda (x) (<= (car lst) x)) (cdr lst)))))))
 
(write(sortList '(5 9 -1 6 0 12 67 3 8 -94)))

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.