Hi Andrew, I assume what was intended was the same as how update-in behaves:
http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/update-in However, reading the source for Om makes it clear that this is not supported: https://github.com/swannodette/om/blob/master/src/om/core.cljs#L776-L790 So this must be a mistake in the documentation--perhaps transact! used to do this but no longer does. I suspect whenever David added the tag argument he removed this functionality. In any case I've removed this line from the wiki docs. DD (2014/07/08 16:04), Andrew Stoeckley wrote: > On Wednesday, May 7, 2014 2:30:26 PM UTC+8, Daniel Kersten wrote: > >> The versions of om/transact! are: >> >> (om/transact! cursor function) >> (om/transact! cursor path function) >> (om/transact! cursor path function tag) >> >> Note that it's not like swap! where you can pass additional arguments to >> function after the function. >> > > I'm trying to understand the line in the documentation that says: > > om.core/transact! can be given additional args to pass to f. > > This implies there is a multiple arity variant of transact! ? What is meant > by this line in the docs, as I've never seen any examples of it. > > Andrew > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
