Name

incf

Usage

macro

Syntax

(incf place &optional (delta 1))

Description

Increments the value of the setfable place by delta.

user 1 > (let x 3)
it: 3
user 2 > (incf x)
it: 4
user 3 > x
it: 4
user 4 > (let a '(1 2 3))
it: (1 2 3)
user 5 > (incf (second a))
it: 3
user 6 > a
it: (1 3 3)