Name

decf

Usage

macro

Syntax

(decf place &optional (delta 1))

Description

Decrements the variable or any setf-able expression by delta.

user 1 > (let a 3)
it: 3
user 2 > (decf a)
it: 2
user 3 > a
it: 2
user 4 > (def b '(1 1 3))
it: b
user 5 > (decf (second b))
it: 0
user 6 > b
it: (1 0 3)