Skip to content

Instantly share code, notes, and snippets.

@aamirsahmad
Created July 10, 2019 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aamirsahmad/c9af6e26e166ece00f23d946d66b3670 to your computer and use it in GitHub Desktop.
Save aamirsahmad/c9af6e26e166ece00f23d946d66b3670 to your computer and use it in GitHub Desktop.
(defun locatePositions (x list)
(loop for n from 1 to (length list)
when (= (nth n list) x)
collect n)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment