createFunction

Construct a function with the given code and tuple of copied variables.

Return

A function.

Parameters

code

The code with which to build the function.

copiedTuple

The outer variables and constants to enclose.