MCPcopy Create free account
hub / github.com/microsoft/SandDance / changes

Function changes

docs/app/js/sanddance-app.js:116314–116333  ·  view source on GitHub ↗
(out)

Source from the content-addressed store, hash-verified

116312 return tuple;
116313 },
116314 changes (out) {
116315 const adds = this._adds, mods = this._mods, prev = this._prev, drop = this._drop, add1 = out.add, rem1 = out.rem, mod = out.mod;
116316 let cell7, key, i, n;
116317 if (prev) for(key in prev){
116318 cell7 = prev[key];
116319 if (!drop || cell7.num) rem1.push(cell7.tuple);
116320 }
116321 for(i = 0, n = this._alen; i < n; ++i){
116322 add1.push(this.celltuple(adds[i]));
116323 adds[i] = null; // for garbage collection
116324 }
116325 for(i = 0, n = this._mlen; i < n; ++i){
116326 cell7 = mods[i];
116327 (cell7.num === 0 && drop ? rem1 : mod).push(this.celltuple(cell7));
116328 mods[i] = null; // for garbage collection
116329 }
116330 this._alen = this._mlen = 0; // reset list of active cells
116331 this._prev = null;
116332 return out;
116333 }
116334});
116335const EPSILON$1 = 1e-14;
116336/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected