Skip to content

Commit

Permalink
Merge pull request #128 from Hardikus/rest-destructuring
Browse files Browse the repository at this point in the history
Fix destructuring for variable arity
  • Loading branch information
yogthos committed Jun 16, 2015
2 parents 8559872 + ecc7a9c commit 32f1d93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/reagent/ratom.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
(-reset! a (f state x)))
(-swap! [a f 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)))

IMeta
Expand Down Expand Up @@ -143,7 +143,7 @@
(-swap! (._reaction a) f x))
(-swap! [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))

IPrintWithWriter
Expand Down Expand Up @@ -236,7 +236,7 @@
(-reset! a (f (-peek-at a) x)))
(-swap! [a f 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)))

IComputedImpl
Expand Down Expand Up @@ -362,7 +362,7 @@
(-reset! a (f state x)))
(-swap! [a f 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)))

IEquiv
Expand Down

0 comments on commit 32f1d93

Please sign in to comment.