I'm not sure I understand the question. A file can contain multiple
function definitions. You could surround all of the functions in a let
block so they can all see the common variable

The code and variables in a function cannot be introspected or altered at
runtime
On Mon, Feb 9, 2015 at 8:35 AM Chang Kwon <[email protected]> wrote:

> Thanks, Jameson. That means, I have to actually write bar(y) within the
> function foo(value), right?
>
> I have foo(), foo1(), foo2(), foo3(), all of which use the same bar(y).
> Should I repeatedly write the code for bar(y) for all foo functions? Is
> there any other way?
>
> I can make the bar() function as bar(x,y), but it is not an option to me
> for some reasons.
>
>

Reply via email to