• (re-case test-value & clauses)
Like case, but the test expressions are regular expressions, tested
with re-find.

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:87 top

(defmacro re-case
  "Like case, but the test expressions are regular expressions, tested
  with re-find."
  [test-value & clauses]
  `(fcase re-find ~test-value ~@clauses))
Vars in clojure.contrib.fcase/re-case: defmacro concat list re-find seq
Used in 0 other vars

Comments top

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