Synthetic applications of 3-(cyanoacetyl)indoles and related compounds