示例#1
0
 /// <summary> Sets the value at the given coordinates, relative to the current environment. </summary>
 public static void SetValueAt(VarPos varref, Val value, Environment frame)
 => GetFrame(varref.frameIndex, frame).SetValue(varref.symbolIndex, value);
示例#2
0
 /// <summary> Sets the symbol at the given coordinates, relative to the current environment. </summary>
 public static void SetSymbolAt(VarPos varref, Symbol symbol, Environment frame)
 => GetFrame(varref.frameIndex, frame).SetSymbol(varref.symbolIndex, symbol);
示例#3
0
 /// <summary> Retrieves the value at the given coordinates, relative to the current environment. </summary>
 public static Val GetValueAt(VarPos varref, Environment frame)
 => GetFrame(varref.frameIndex, frame).GetValue(varref.symbolIndex);
示例#4
0
 /// <summary> Retrieves the symbol at the given coordinates, relative to the current environment. </summary>
 public static Symbol GetSymbolAt(VarPos varref, Environment frame)
 => GetFrame(varref.frameIndex, frame).GetSymbol(varref.symbolIndex);