reverse fold a list