as.listofindex function

Transform index results in a list of index