Пример #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);