chickadee » list-utils » shift!/set

(shift!/set VARIABLE [WHEN-EMPTY])syntax

Like shift! but assigns the VARIABLE '() after shifting from a list of length 1.

WHEN-EMPTY, which defaults to #f, is returned when the list bound to VARIABLE is empty.