2 summary:: lazy environment
3 categories:: Libraries>JITLib>Environments
4 related:: Classes/Environment, Classes/EnvironmentRedirect, Classes/ProxySpace, Overviews/JITLib
7 Environment with deferred evaluation and default values.
9 Consequently, calculations can be done with nonexisting objects which can then be assigned later.
10 Per default, a LazyEnvir returns instances of link::Classes/Maybe::. See also link::Classes/Fdef::.
15 sets the value of the reference at key.
18 returns a reference to the object at key.
25 // default objects are created on access
27 ~a.value; // defaults to 1
29 // operations on placeholders
37 // variables can be assigned later
46 // variables can be exchanged later
53 // making pattern space using LazyEnvir
56 a.proxyClass=\PatternProxy;
60 ~x = Pseq([1, 2, 30], 1);
68 ~x = Pseq([100, 2, 300], 1);