Skip to content

Instantly share code, notes, and snippets.

@siddhartha-gadgil
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

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

Select an option

Save siddhartha-gadgil/9620774 to your computer and use it in GitHub Desktop.
_map_ : {A B : Set} → List A → (A → B) → List B
[] map _ = []
(a :: xs) map f = (f a) :: (xs map f)
twothreefour : List ℕ
twothreefour = onetwothree map succ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment