Hi Mark,
Intersect would not work in this case. The two lists would need to be of the same type. What you can do is retrieve a list of all students without an association to a Enrollment using an xpath constraint.
You would use retrieve from database and your constraint would look something along the lines of this.
[not(MyFirstModule.Student_Enrollment/MyFirstModule.Enrollment)]
This will return a list of all students that don't have an association to an enrollment.
Also here is some documentation on xpath.
https://docs.mendix.com/refguide/xpath
Hope this helps!
In your example you would first need to create a list of enrolled students.
You could iterate over the enrollments, retrieve the enrolled students for each, then add those to a new list enrolled students. Then you have two lists with the same type of entity that you can operate on.
But if your data can all be accessed directly from database you can do that with a single XPATH retrieve as Austin suggests.