You can access the elements using varnames[[1]] etc. and convert it into a vector, if it makes it easier for you.
Source: https://www.datacamp.com/community/tutorials/r-tutorial-apply-family
lapply takes a list and applies the function to every element of the list. The list can also have another list as an element. So it takes that into consideration and returns that nested structure.