• (case test-value & clauses)
Like cond, but test-value is compared against the value of each
test expression with =. If they are equal, executes the "body"
expression. Optional last expression is executed if none of the
test expressions match.

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/fcase.clj:79 top

(defmacro case
  "Like cond, but test-value is compared against the value of each
  test expression with =.  If they are equal, executes the \"body\"
  expression.  Optional last expression is executed if none of the
  test expressions match."
  [test-value & clauses]
  `(fcase = ~test-value ~@clauses))
Vars in clojure.contrib.fcase/case: case defmacro = concat list seq
Used in 0 other vars

Comments top

No comments for case. Log in to add a comment.