Switch based partial application