How to import another Lua script to main Lua script

It seems this topic may be relevant. I will be checking to see how it works. if we can include files somehow it will make Lua so much more powerful. Now I am forced to duplicate large chunks of code.

Modular lua scripts - ArduPilot Lua Scripting - ArduPilot Discourse