Hey Marius, > Not difficult but not convenient either such as: > > def update(name: String, newVal: JsExp, obj: JsObj) = (for (found <- > obj.props if found._1 != name) yield found) ::: List(name, newVal)
I think your exactly right - its doable, but it just feels dirty. lol. > Personally I'm fine with a Map[String, JxExp] instead of List because > if we have the same property multiple times in a JSON construct the > last occurrence "wins". Do you think we could add this to JsObj? There appears to be a good rational for it. What do you think? Cheers, Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---