How to make a datapack repeat its functions

I'm new to making datapacks. I can make commands run in my world using functions but I don't know how to make the function repeat itself.
Continue to help post