Last active
June 13, 2018 22:32
-
-
Save jjant/86ab3b849b80305e284571b26f9598c8 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
myCont :: Cont r Int | |
myCont = Cont (\k -> k (10 + 30)) | |
double :: Int -> Int | |
double x = x * 2 | |
(runCont myCont) double -- 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment