Skip to content

Instantly share code, notes, and snippets.

@steelbrain
Created June 21, 2018 22:18
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 steelbrain/0e39f6099b2c1e05b17e025e1d134019 to your computer and use it in GitHub Desktop.
Save steelbrain/0e39f6099b2c1e05b17e025e1d134019 to your computer and use it in GitHub Desktop.
Ocaml Question snippet
begin match key with
| "name" -> { package with name = Some value }
| "flow:main" -> { package with main = Some value }
| "main" -> { package with main = Some value }
| _ -> package
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment