• (m-when test m-expr)
If test is logical true, return monadic value m-expr, else return
(m-result nil).

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:253 top

(defmacro m-when
  "If test is logical true, return monadic value m-expr, else return
   (m-result nil)."
  [test m-expr]
  `(if ~test ~m-expr (~'m-result nil)))
Vars in clojure.contrib.monads/m-when: defmacro test concat list seq
Used in 0 other vars

Comments top

No comments for m-when. Log in to add a comment.