I would create a sketch, save it and make a new tab to put all the functions.
Then, I’d share the sketch folder with every student.
The only possible problem with this is that your students could break the functions, as you cannot hide a tab while using Processing’s IDE.