Skip to content

Instantly share code, notes, and snippets.

@siddhartha-gadgil
Created March 18, 2014 13:37
Show Gist options
  • Select an option

  • Save siddhartha-gadgil/9620174 to your computer and use it in GitHub Desktop.

Select an option

Save siddhartha-gadgil/9620174 to your computer and use it in GitHub Desktop.
length : {A : Set} → List A → ℕ
length [] = zero
length (a :: l) = succ (length l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment