Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9690
| From | Simon <simonjtyler@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Understanding patterns |
| Date | 2012-04-18 07:52 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jmlrsi$jbv$1@smc.vnet.net> (permalink) |
| References | <jmgra7$pm5$1@smc.vnet.net> |
> I can't quite make sense of the following:
>
> f[p : {__?NumericQ}] :=
The other replies have already described what the pattern does. I thought it might just be useful to point out that you can also examine the FullForm structure:
In[]:= FullForm[p:{__?NumericQ}]
Out[]= Pattern[p, List[PatternTest[BlankSequence[], NumericQ]]]
Sometimes when constructing complicated patterns with defaults etc, I find it useful to look at the FullForm...
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Understanding patterns Sam Takoy <sam.takoy@yahoo.com> - 2012-04-16 10:12 +0000 Re: Understanding patterns Simon <simonjtyler@gmail.com> - 2012-04-18 07:52 +0000
csiph-web