1.2.0 permalink Arrow_down_16x16
  • (in-case test-value & clauses)
Like case, but test expressions are sequences. The test expression
is true if any item in the sequence is equal (tested with '=') to
the test value.

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

(defmacro in-case
  "Like case, but test expressions are sequences.  The test expression
  is true if any item in the sequence is equal (tested with '=') to
  the test value."
  [test-value & clauses]
  `(fcase in-case-test ~test-value ~@clauses))
Vars in clojure.contrib.fcase/in-case: defmacro concat list seq
Used in 0 other vars

Comments top

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