Skip to content

Instantly share code, notes, and snippets.

@jgarte
Forked from deque-blog/double_it.idr
Created April 22, 2024 04:35
Show Gist options
  • Save jgarte/7bd754795d453188896a1352bd82befe to your computer and use it in GitHub Desktop.
Save jgarte/7bd754795d453188896a1352bd82befe to your computer and use it in GitHub Desktop.
double_it : IO ()
double_it = do
input <- getLine
let n = the Int (cast input)
printLn (n * 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment