From 78427aa26679b3ef23a993a29e29f3831a72dc91 Mon Sep 17 00:00:00 2001 From: Tim Lopez Date: Thu, 13 Aug 2009 09:57:46 -0700 Subject: [PATCH] removed 'implicit do' reference in README (no longer true) --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 4fbc0ea..d2d6aea 100644 --- a/README.rst +++ b/README.rst @@ -5,8 +5,8 @@ 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] @@ -14,7 +14,7 @@ clauses can be used for conditional checks:: 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))