Yup, don’t see why not.
Although you’d want to make r local so that that reference is deleted from memory when the function ends.
Yup, don’t see why not.
Although you’d want to make r local so that that reference is deleted from memory when the function ends.