Permalink
Browse files

Added a TODO in objclj.monads about improving domonad even further

  • Loading branch information...
1 parent 06549c1 commit 3ef64a88b3a82cdc6ebb899bd409e387bfe79ca4 @jspahrsummers committed Jul 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/objclj/monads.clj
View
@@ -8,6 +8,8 @@
The last expression given is returned, identically to the final argument of clojure.algo.monads/domonad. <- may not appear in the last expression."
[& exprs]
+
+ ; TODO: improve this to not require parentheses around (x <- y)
(let [monad-exprs (map #(if (and (list? %) (= (second %) '<-))
(cons (first %) (drop 2 %))
(list '_ %))

0 comments on commit 3ef64a8

Please sign in to comment.