-
-
Save cky/871a0abf0aa6a020f52b to your computer and use it in GitHub Desktop.
Solution to Stack Overflow question 12702535
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
(define (unzip l) | |
(if (null? l) '(() ()) | |
(let ((next (unzip (cdr l)))) | |
(list (cons (car l) (cadr next)) (car next))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment