Natural selection: when learning guides evolution