Fix the recursive optimized power calculation
[TD_LISP.git] / exercices / lists.lsp
index 6bf12a5e7a1e1803016fd4b6bc1e3d03b33b8c1a..35590dada335ff070e4a9546859cdafbe8777b1c 100755 (executable)
     ((append 
        ;the pivot is the first element of the list
        (qsort (list< (first L) (rest L))) 
-       (cons (first L) '()) 
+       (list (first L))
        (qsort (list>= (first L) (rest L)))))))
 (println "qsort")
 (println (qsort C))