Commits

Meikel Brandmeyer committed 4ecf017

Fix return method for `State

* monad/state.clj (return): removed spurious docstring and fixed argumentlist

Comments (0)

Files changed (1)

src/de/kotka/monad/state.clj

 (derive `State `Monad)
 
 (defmethod return `State
-  "Sets the value but leaves the state intact."
-  [x]
-  (make-monad `State #(vector x %)))
+  [t x]
+  (make-monad t #(vector x %)))
 
 (defvar
   get-state