Function composition and currying