Function: typecase

typecase is a for cl-typecase, defined in cl-macs.el.gz.

This macro is obsolete since 27.1; use cl-typecase instead.

Signature

(typecase EXPR (TYPE BODY...)...)

Documentation

Eval EXPR and choose among clauses on that value.

Each clause looks like (TYPE BODY...). EXPR is evaluated and, if it satisfies TYPE, the corresponding BODY is evaluated. If no clause succeeds, this macro returns nil. A TYPE of t or otherwise is allowed only in the final clause, and matches if no other keys match.

Aliases

typecase (obsolete since 27.1)