Created
November 4, 2011 15:27
-
-
Save kosugi/1339584 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
;; http://qiita.com/items/857 | |
(define (xpl xs) | |
(let loop ((xs (reverse xs)) (ys '())) | |
(if (null? xs) (reverse ys) | |
(loop (cdr xs) (append ys (list (reverse xs))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment