Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created November 21, 2012 10:01
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 adilakhter/4124078 to your computer and use it in GitHub Desktop.
Save adilakhter/4124078 to your computer and use it in GitHub Desktop.
computelength
// naive implementation
let rec length list =
match list with
| [] -> 0
| _::tail -> 1 + computeLength tail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment