Created
February 25, 2011 13:36
-
-
Save robotlolita/843782 to your computer and use it in GitHub Desktop.
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
# Pair stepper generator | |
(defun pair_stepper: (seq) -> | |
(letb (slen = (len seq)) -> | |
(stepper seq, (idx) -> | |
(if idx + 1 >= slen | |
((list idx, $break)) | |
else | |
(list idx + 1, (nth idx, seq, 2)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment