MCPcopy
hub / github.com/microsoft/SandDance / replace

Function replace

docs/app/js/sanddance-app.js:107260–107262  ·  view source on GitHub ↗

* Replace an existing tuple with a new tuple. * @param {object} t - The existing data tuple. * @param {object} d - The new tuple that replaces the old. * @return {object} The new tuple.

(t, d)

Source from the content-addressed store, hash-verified

107258 * @param {object} d - The new tuple that replaces the old.
107259 * @return {object} The new tuple.
107260 */ function replace(t, d) {
107261 return setid(d, tupleid(t));
107262}
107263/**
107264 * Generate an augmented comparator function that provides stable
107265 * sorting by tuple id when the given comparator produces ties.

Callers

nothing calls this directly

Calls 3

replaceMethod · 0.80
setidFunction · 0.70
tupleidFunction · 0.70

Tested by

no test coverage detected