Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@45deg
Created October 13, 2017 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 45deg/055cd32e8723ead25a64d8256f292f03 to your computer and use it in GitHub Desktop.
Save 45deg/055cd32e8723ead25a64d8256f292f03 to your computer and use it in GitHub Desktop.
Eff-lang example
let printName () =
let name = std#read () in
print ("hello " ^ name);;
let inputJohn = handler
| std#read () k -> k "john"
;;
with inputJohn handle printName ();;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment