Re: Add REMOVE to map put/nested_put (maybe?)

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...
jimcbrown said...

OTOH, I can't think of a more elegant way to do what you are trying to do. (nested_remove() ? That's superfluous. Rename nested_put() to nested_transform(), and then a REMOVE operation? But nested_put() is so much easier to type.)

It's been swirling around in my head for a few days now, and I feel the same way. How about nested_update(), and/or simply update().

I don't like nested_transform. I prefer nested_put, since it matches put. We'd have to change put to transform, which doesn't sound right. I think the solution is to enhance put / nested_put (which implementation actually calls put) with some additional operations.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu