What is the role of discontinuous surfaces on the inside and outside elevons of the F-117?
I believe you are referring to the gaps between the elevons and the other control surfaces?  Those are called cats eye gaps and they’re used to reduce radar returns between the gaps.  Virtually all stealth aircraft use this technology.