Created
October 25, 2023 18:07
-
-
Save lispnik/f7615fa8453c1e8c61d8ca965c94ec92 to your computer and use it in GitHub Desktop.
position-all
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun position-all (item sequence) | |
(loop :for i := (position item sequence) | |
:then (position item sequence :start (1+ i)) | |
:while i | |
:while (< (length sequence)) | |
:collect i)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment