MCPcopy Create free account
hub / github.com/breck7/scroll / patch

Method patch

external/.scrollLibs.js:15514–15522  ·  view source on GitHub ↗
(two)

Source from the content-addressed store, hash-verified

15512 // in this particle that start with the same particle from the first particle with
15513 // that patched version. Does not recurse.
15514 patch(two) {
15515 const copy = this.clone()
15516 two.forEach(particle => {
15517 const hit = copy.getParticle(particle.getAtom(0))
15518 if (hit) hit.destroy()
15519 })
15520 copy.concat(two)
15521 return copy
15522 }
15523 getSparsity() {
15524 const particles = this.getSubparticles()
15525 const fields = this._getUnionNames()

Callers 1

patchAndSaveMethod · 0.80

Calls 6

cloneMethod · 0.95
forEachMethod · 0.80
destroyMethod · 0.80
concatMethod · 0.80
getParticleMethod · 0.45
getAtomMethod · 0.45

Tested by

no test coverage detected