Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Nesting in patterns

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8565] Nesting in patterns
  • From: wself at viking.emcmt.edu (Will Self)
  • Date: Sat, 6 Sep 1997 23:16:27 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Can I have nested blanks in patterns?  Specifically,
I would like to be able to do something like

MatchQ[{{1,2},{1,2}}, {x__}__]

with the x matching the sequence 1,2 .  This doesn't work,
but is there something similar that I can do?

Will Self
Montana State University Billings
"The University of the Yellowstone Valley"


  • Prev by Date: Re: Symbolic Curl
  • Next by Date: Re: importing images
  • Previous by thread: Re: NDSolve
  • Next by thread: Re: Nesting in patterns