Skip to content

Instantly share code, notes, and snippets.

@jasom
Created August 2, 2012 00:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasom/3232015 to your computer and use it in GitHub Desktop.
Save jasom/3232015 to your computer and use it in GitHub Desktop.
Jazzychad increment function
(defun increment (sequence val n)
(substitute (1+ val) val sequence
:from-end (< n 0)
:count (if (= n 0) nil (abs n))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment