Re: Understanding patterns
- To: mathgroup at smc.vnet.net
- Subject: [mg126097] Re: Understanding patterns
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Tue, 17 Apr 2012 06:03:10 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201204161010.GAA26201@smc.vnet.net>
Select the two underscores, hit F1, and read documentation on BlankSequence.
Select the ?, hit F1, and read the documentation on PatternTest.
Bob Hanlon
On Mon, Apr 16, 2012 at 6:10 AM, Sam Takoy <sam.takoy at yahoo.com> wrote:
> Hi,
>
> I hoping to get some pointers on understanding patterns. For example,
> I can't quite make sense of the following:
>
> f[p : {__?NumericQ}] :=
>
> What is the meaning of "{", the double underscore, and the question
> mark?
>
> Many thanks in advance,
>
> Sam
>
- References:
- Understanding patterns
- From: Sam Takoy <sam.takoy@yahoo.com>
- Understanding patterns