Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Last active August 29, 2015 14:00
Show Gist options
  • Save lmarburger/ceff4f6f55eaca771a2b to your computer and use it in GitHub Desktop.
Save lmarburger/ceff4f6f55eaca771a2b to your computer and use it in GitHub Desktop.
Introduction to Functional Programming
one x = 1
one :: α → num
apply f x = f x
f :: (α → β)
x :: α
apply :: (α → β) → α → β
compose f g x = f(g x)
f :: (α → β)
g :: (γ → α)
x :: γ
compose :: (α → β) → (γ → α) → γ → β
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment