Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Wilfred
Created January 24, 2019 17:24
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 Wilfred/b605923e3bca378fe6a43640fbddb452 to your computer and use it in GitHub Desktop.
Save Wilfred/b605923e3bca378fe6a43640fbddb452 to your computer and use it in GitHub Desktop.
type fruit = Apple of int | Pear of int
;;
let foo z =
let y = 2 in begin
function
| Apple x -> x + y + z
| Pear x -> x + y + z
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment