decrement-list-members | ||
---|---|---|
Prev | Next |
(decrement-list-members vlist #!optional (decr 1) (floor 0))
Decrement all the values of a list by decr, not to fall below floor.
The list of values. All the values of this list should be numeric.
The amount by which each element of the list should be decremented. The default is 1.
The value below which each member of the list is not allowed to fall. The default is 0.
David Carlisle
(define (decrement-list-members vlist #!optional (decr 1) (floor 0)) ;; Decrement each member of a list (map (lambda (a) (if (<= a (+ decr floor)) floor (- a decr))) vlist))
Prev | Home | Next |
copy-string | Up | default-lowercase-list |