* 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)
| 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. |