Generally, an alkyl derivative, under appropriate conditions, will eliminate $$HX$$, where $$X$$ is commonly a halide, ester, or -onium function, provided that there is a hydrogen located on the carbon adjacent to that bearing the $$X$$ function: