(v)
| 107270 | return !cmp ? null : f ? (a, b)=>cmp(a, b) || tupleid(f(a)) - tupleid(f(b)) : (a, b)=>cmp(a, b) || tupleid(a) - tupleid(b); |
| 107271 | } |
| 107272 | function isChangeSet(v) { |
| 107273 | return v && v.constructor === changeset; |
| 107274 | } |
| 107275 | function changeset() { |
| 107276 | const add1 = [], // insert tuples |
| 107277 | rem = [], // remove tuples |