Skip to content

Instantly share code, notes, and snippets.

@mathias-brandewinder
Forked from radwane-h/FsharpSnippets.fs
Last active August 29, 2015 14: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 mathias-brandewinder/018f33d13de765804fe5 to your computer and use it in GitHub Desktop.
Save mathias-brandewinder/018f33d13de765804fe5 to your computer and use it in GitHub Desktop.
let rec minimum data mini =
match data with
| first::second::tail ->
let min = abs (first - second) |> minimumBetweenTwoNumbers mini
match tail with
| [] -> min
| _ -> minimum second::tail min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment