The role of behavioural flexibility in responding to new or changing environmental challenges is a central theme in cognitive ecology. Studies of behavioural flexibility have focused mostly on mammals and birds because theory predicts that behavioural flexibility is favoured in species or clades that exploit a diversity of habitats or food sources and/or have complex social structure, attribute...