1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

Mention pcase as a fifth conditional form

* doc/lispref/control.texi (Conditionals): ...here,
in first para, w/ xref to "Pattern-Matching Conditional".
This commit is contained in:
Thien-Thi Nguyen 2018-05-26 09:44:10 +02:00
parent 567cb9046d
commit 9d6a3ac73a

View File

@ -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}