private IValue MapContains(List <IValue> arguments, Scope s) { MapTable map = (MapTable)arguments[0]; IValue key = arguments[1]; return(map.AsDictionary().ContainsKey(key) ? Bool.True : Bool.False); }
private IValue AreEqual(List <IValue> arguments, Scope s) { MapTable left = (MapTable)arguments[0]; MapTable right = (MapTable)arguments[1]; return(left.AsDictionary().SequenceEqual(right.AsDictionary()) ? Bool.True : Bool.False); }