I have the result of a query in Realm and now I'd like to use 'results' as a global variable.
let results = self.realm.objects(Table)
var results = [Table]()
You can option-click on
results to view the inferred type.
In this case, if you look at the documentation for
objects(_:), you'll see that it returns a
T is the type speicifed by the parameter (
Table, in this case).