Skip to content

Instantly share code, notes, and snippets.

@cprieto
Created August 16, 2019 07:32
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 cprieto/e9f9f6106d52733012e62b48f431cbc8 to your computer and use it in GitHub Desktop.
Save cprieto/e9f9f6106d52733012e62b48f431cbc8 to your computer and use it in GitHub Desktop.
(* This is a code fragment in OCaml *)
match watever with
| (true, _) ->
match String.lowecase Path.GetExtension path with
| ".sln" | ".csproj" | ".fsproj" -> Path.GetFullPath path
_ -> failwith "Whatever"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment