examples of partially applying functions