partial application (currying) for Swift