I have not been able to find exact answer on the developer pages, but from coding I am seeing that the only data type returned from a SOQL is a List. Is this correct?
I am encountering this because I was wanting to have the returned objects from the SOQL put inside of a Set instead of a List because the Set class has some remove methods that the List class does not. (i.e. removeAll()).
Is there a way to have the returned SOQL put into a Set, or does the returned SOQL always have to be initially put into a List? I can take the List and then create a set from it, but is there a way to skip the two step process?