@@ -301,7 +301,7 @@ export function make() {
301301export function from ( iterable ) {
302302 let transient = toTransient ( emptyDict ) ;
303303 for ( const [ key , value ] of iterable ) {
304- transient = transientInsert ( key , value , transient ) ;
304+ transient = destructiveTransientInsert ( key , value , transient ) ;
305305 }
306306 return fromTransient ( transient ) ;
307307}
@@ -448,7 +448,7 @@ export function insert(dict, key, value) {
448448 *
449449 * Returns a new transient.
450450 */
451- export function transientInsert ( key , value , transient ) {
451+ export function destructiveTransientInsert ( key , value , transient ) {
452452 const hash = getHash ( key ) ;
453453 transient . root = doInsert ( transient , transient . root , key , value , hash , 0 ) ;
454454 return transient ;
@@ -460,7 +460,7 @@ export function transientInsert(key, value, transient) {
460460 *
461461 * Returns a new transient.
462462 */
463- export function transientUpdateWith ( key , fun , value , transient ) {
463+ export function destructiveTransientUpdateWith ( key , fun , value , transient ) {
464464 const hash = getHash ( key ) ;
465465
466466 const existing = lookup ( transient . root , key , hash ) ;
@@ -553,7 +553,7 @@ function doInsert(transient, node, key, value, hash, shift) {
553553 * Consume a transient, removing a key if it exists.
554554 * Returns a new transient.
555555 */
556- export function transientDelete ( key , transient ) {
556+ export function destructiveTransientDelete ( key , transient ) {
557557 transient . root = doDelete ( transient , transient . root , key , getHash ( key ) , 0 ) ;
558558 return transient ;
559559}
0 commit comments