Skip to content

Commit

Permalink
removed 'implicit do' reference in README (no longer true)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Lopez authored and Tim Lopez committed Aug 13, 2009
1 parent 57567bc commit 78427aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -5,16 +5,16 @@ Pattern Matching
----------------

Literal values match against the same value, while _ matches against
any non-nil value. The action is an implicit do. Additionally, :when
clauses can be used for conditional checks::
any non-nil value. Additionally, :when clauses can be used for
conditional checks::

; simple recursive evaluator
(defn arithmetic [lst]
(match lst
v :when (number? v) v
[ _ "error" _] "error"
[ _ _ "error"] "error"
[ "print" a ] (println "Output:" a) a
[ "print" a ] (do (println "Output:" a) a)
[ "add" a b ] (+ (arithmetic a) (arithmetic b))
[ "sub" a b ] (- (arithmetic a) (arithmetic b))
[ "mul" a b ] (* (arithmetic a) (arithmetic b))
Expand Down

0 comments on commit 78427aa

Please sign in to comment.