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"