mirror of https://github.com/status-im/reagent.git
Fix destructuring for variable arity
This commit is contained in:
parent
ff10d23591
commit
ecc7a9c4c3
|
@ -63,7 +63,7 @@
|
||||||
(-reset! a (f state x)))
|
(-reset! a (f state x)))
|
||||||
(-swap! [a f x y]
|
(-swap! [a f x y]
|
||||||
(-reset! a (f state x y)))
|
(-reset! a (f state x y)))
|
||||||
(-swap! [a f x y more]
|
(-swap! [a f x y & more]
|
||||||
(-reset! a (apply f state x y more)))
|
(-reset! a (apply f state x y more)))
|
||||||
|
|
||||||
IMeta
|
IMeta
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
(-swap! (._reaction a) f x))
|
(-swap! (._reaction a) f x))
|
||||||
(-swap! [a f x y]
|
(-swap! [a f x y]
|
||||||
(-swap! (._reaction a) f x y))
|
(-swap! (._reaction a) f x y))
|
||||||
(-swap! [a f x y more]
|
(-swap! [a f x y & more]
|
||||||
(-swap! (._reaction a) f x y more))
|
(-swap! (._reaction a) f x y more))
|
||||||
|
|
||||||
IPrintWithWriter
|
IPrintWithWriter
|
||||||
|
@ -235,7 +235,7 @@
|
||||||
(-reset! a (f (-peek-at a) x)))
|
(-reset! a (f (-peek-at a) x)))
|
||||||
(-swap! [a f x y]
|
(-swap! [a f x y]
|
||||||
(-reset! a (f (-peek-at a) x y)))
|
(-reset! a (f (-peek-at a) x y)))
|
||||||
(-swap! [a f x y more]
|
(-swap! [a f x y & more]
|
||||||
(-reset! a (apply f (-peek-at a) x y more)))
|
(-reset! a (apply f (-peek-at a) x y more)))
|
||||||
|
|
||||||
IComputedImpl
|
IComputedImpl
|
||||||
|
@ -361,7 +361,7 @@
|
||||||
(-reset! a (f state x)))
|
(-reset! a (f state x)))
|
||||||
(-swap! [a f x y]
|
(-swap! [a f x y]
|
||||||
(-reset! a (f state x y)))
|
(-reset! a (f state x y)))
|
||||||
(-swap! [a f x y more]
|
(-swap! [a f x y & more]
|
||||||
(-reset! a (apply f state x y more)))
|
(-reset! a (apply f state x y more)))
|
||||||
|
|
||||||
IEquiv
|
IEquiv
|
||||||
|
|
Loading…
Reference in New Issue