On Mar 24, 10:27 pm, Timothy Perrett <[email protected]> wrote:
> 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?

I think you should change the List to mutable Map

>
> Cheers, Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to