parent
bf6e6ec5ba
commit
a2e4fc9aed
|
@ -199,7 +199,8 @@ see a pattern similar to list unpacking, but also type checking: the
|
|||
``Promise()`` pattern is not an object construction, but represents
|
||||
anything that's an instance of ``Promise``. The pattern operator ``|``
|
||||
separates alternative patterns (not unlike regular expressions or EBNF
|
||||
grammars), and ``_`` is a wildcard.
|
||||
grammars), and ``_`` is a wildcard. (Note that the match syntax used
|
||||
here will accept user-defined sequences, as well as lists and tuples.)
|
||||
|
||||
In some occasions, extraction of information is not as relevant as
|
||||
identifying structure. Take the following example from the
|
||||
|
|
Loading…
Reference in New Issue