How to import functions in Google Apps Script

google-apps-script

Solution

If both gs are in the same project, its already available. Else read about apps script libraries.

Problem

I have two Apps Script Code.gs and Code2.gs I would like to import function A in Code2.gs and use it in function B in Code.gs. Any ideas ?

Original source