getListElements

Gets all the elements in the specified list.