Form–function relationships underlie rapid dietary changes in a lizard