public void Apply(Mutation mut) { this.Trigger(mut); mut.Delete.Flatten().ForEach(layer => this.Delete(layer.Path)); mut.Merge.Flatten().ForEach(layer => this.Merge(layer)); }
public void Put(string[] path, JToken value) { var mut = new Mutation().Mrg(path, value); this.Apply(mut); }