ISwap

protocolsince v0.0-2173Edit
Source docstring:
Protocol for adding swapping functionality.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defprotocol ISwap
  (-swap! [o f] [o f a] [o f a b] [o f a b xs]
    "Swaps the value of o to be (apply f current-value-of-atom args)."))