instance-case

clojure.contrib.fcase

  • (instance-case test-value & clauses)
Like case, but the test expressions are Java class names, tested with
'instance?'.

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

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

Comments top

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