Created
May 4, 2011 06:28
-
-
Save jutememo/954835 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
concat'cps [] k = k [] | |
concat'cps ([]:_) k = [] | |
concat'cps (xs:xss) k = concat'cps xss $ \xss' -> k $ xs ++ xss' | |
main = print $ concat'cps [[1,2],[3,4],[],[5,6]] id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment