diff options
author | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2017-11-24 22:48:05 +0100 |
---|---|---|
committer | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2017-12-14 14:19:07 +0100 |
commit | 0bca8c15643e7b5b894b822db4f50bfbbd0858bb (patch) | |
tree | 611203145c323e9d118f018a31b3e49fb648b66b /doc | |
parent | d6bd80ff477f3416f4ff0ded65aa658999b5ac21 (diff) |
Document Asymmetric Patterns.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/refman/Cases.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/refman/Cases.tex b/doc/refman/Cases.tex index 7ad895f9d..376ef031d 100644 --- a/doc/refman/Cases.tex +++ b/doc/refman/Cases.tex @@ -280,6 +280,18 @@ Fail Check end). \end{coq_example} +The option {\tt Set Asymmetric Patterns} \optindex{Asymmetric Patterns} +(off by default) removes parameters from constructors in patterns: +\begin{coq_example} + Set Asymmetric Patterns. + Check (fun l:List nat => + match l with + | nil => nil + | cons _ l' => l' + end) + Unset Asymmetric Patterns. +\end{coq_example} + \paragraph{Implicit arguments in patterns} By default, implicit arguments are omitted in patterns. So we write: |