Dispersing prisms are used for wavelength separation applications. A light ray is twice refracted passing through the prism. Deviation is a function of refractive index, and hence wavelength.