sources/gen-sequence.lisp | ●●●●● patch | view | raw | blame | history |
sources/gen-sequence.lisp
@@ -301,6 +301,16 @@ (nth counter liste))) (defun find-area (value borders &key (start-index 0)) (cond ((null (second borders)) start-index) ((and (>= value (first borders)) (< value (second borders))) start-index) (t (find-area value (cdr borders) :start-index (1+ start-index))))) (defun filter-rests (liste) (cond ((null liste) nil) (t (append (if (>= (car liste) 0) (list (car liste)) nil) (filter-rests (cdr liste))))))