Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6682
| From | borges2003xx <borges2003xx@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | fastern pattern test |
| Date | 2011-11-24 12:00 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jalbl0$sg0$1@smc.vnet.net> (permalink) |
please help a beginner.
I need to clear every list in which there are two sublist with a
property (in this case,equals and with length >= 2) ,not overlapping.
Is there a faster way, perhaps using PatternTest (?).
Thanx in Advance
Clear[mm]
mm[{___, b1__, ___, b1__, ___}] := {} /; Length[{b1}] >= 2
mm[l_] := l
pool = Strings[{0, 1}, 6];
s1 = Rest[Union[Map[mm, pool]]]
Best Regards
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
fastern pattern test borges2003xx <borges2003xx@gmail.com> - 2011-11-24 12:00 +0000
csiph-web