I'd use clojure.core/replace
It takes a replacement-map in the form of {before after, ...} and a
collection. It replaces all befores with the corresponding afters:
=> (replace {:answer 42} [:the :answer :to :life])
[:the 42 :to :life]
On Mon, Feb 13, 2012 at 23:16, James wrote:
> Hi,
>
> I am n
On Mon, Feb 13, 2012 at 5:16 PM, James wrote:
> Hi,
>
> I am new to clojure and I am very excited about learning the
> language. I have a question about replacing an element in a list. I
> have elements that look like this :
>
> {:id G__781, :value 1}
>
> The list looks like this:
>
> ({:id G__