Skip to content

Commit

Permalink
Single do removal rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ohpauleez committed Mar 9, 2012
1 parent 8287f27 commit 2c8d8be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jonase/kibit/rules/misc.clj
Expand Up @@ -11,9 +11,13 @@
(filter (complement ?pred) ?coll) (remove ?pred ?coll)
(filter #(not (?pred ?x)) ?coll) (remove ?pred ?coll)

;; anonymous functions
(fn ?args (?fun . ?args)) ?fun
(fn* ?args (?fun . ?args)) ?fun

;;do
(do ?x) ?x

})

(comment
Expand Down

0 comments on commit 2c8d8be

Please sign in to comment.