Skip to content

Instantly share code, notes, and snippets.

@aarondaub
Created September 5, 2014 21:02
Show Gist options
  • Save aarondaub/1f27e53d37ac0f5efd77 to your computer and use it in GitHub Desktop.
Save aarondaub/1f27e53d37ac0f5efd77 to your computer and use it in GitHub Desktop.
func compose <A, B, C>(lhs:(B -> C), rhs:(A -> B)) -> (A -> C){
return { lhs(rhs($0)) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment