Following is the structure of my code:
Part 1:
var result = <-- a very resource heavy calculation-->;
Part 2:
var a = result.x;
var b = result.y;
print a;
print b;
Now, I want to build a program that allows me to have variable result available (i.e. Part 1) all the time and to run the "Part 2" again and again. So it will be like a program in a running state which has pre-calculated variables and uses it again and again.