Commit 9d6a3ac7 authored by Thien-Thi Nguyen's avatar Thien-Thi Nguyen

Mention pcase as a fifth conditional form

* doc/lispref/control.texi (Conditionals): ...here,
in first para, w/ xref to "Pattern-Matching Conditional".
parent 567cb904
Pipeline #13 failed with stage
......@@ -148,9 +148,11 @@ following @var{forms}, in textual order, returning the result of
@cindex conditional evaluation
Conditional control structures choose among alternatives. Emacs Lisp
has four conditional forms: @code{if}, which is much the same as in
has five conditional forms: @code{if}, which is much the same as in
other languages; @code{when} and @code{unless}, which are variants of
@code{if}; and @code{cond}, which is a generalized case statement.
@code{if}; @code{cond}, which is a generalized case statement;
and @code{pcase}, which is a generalization of @code{cond}
(@pxref{Pattern-Matching Conditional}).
@defspec if condition then-form else-forms@dots{}
@code{if} chooses between the @var{then-form} and the @var{else-forms}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment