Last active
September 25, 2021 17:52
-
-
Save palladin/c2964748e45a0a59a15b to your computer and use it in GitHub Desktop.
Simple CPS composition
This file contains hidden or 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
let inline f k = (fun x -> k (x + 1)) | |
let inline g k = (fun x -> k (x + 2)) | |
(f << g) id 1 // 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment