Function scope binding with partial application