Text this: Measurement of the splitting function in pp and Pb-Pb collisions at sNN =5.02 TeV