1.2.0 permalink Arrow_down_16x16
  • (fetch-state)
Return a state-monad function that returns the current state and does not
modify it.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/monads.clj:359 top

(defn fetch-state
  "Return a state-monad function that returns the current state and does not
   modify it."
  []
  (update-state identity))
Vars in clojure.contrib.monads/fetch-state: defn identity
Used in 0 other vars

Comments top

No comments for fetch-state. Log in to add a comment.