Synthesis of functionalized allylic, propargylic and allenylic