Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: List searching

  • To: mathgroup at
  • Subject: [mg57544] Re: List searching
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Wed, 1 Jun 2005 06:01:29 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <d7h9gm$3go$>
  • Sender: owner-wri-mathgroup at


MatchQ[lst, {___, a_, ___, a_, ___}]

will test for multiple elements in lst and


MatchQ[lst, {___, a_ /; a > CretainNumber, ___}]

will do the second test.



"Guy Israeli" <guyi1 at> schrieb im 
Newsbeitrag news:d7h9gm$3go$1 at
> Hello,
> I needed to test lists for certain elements 
> inside of it, however, since I
> didn't find the proper function I had to write 
> them myself.
> are there functions that can do the following:
> - tests (returns true or false) if within the 
> list there is an element that
> appears more than once
> - tests if there is an element in the list that 
> is bigger/smaller than a
> certain number
> I would really appreciate your help,
> Guy

  • Prev by Date: Re: reducing the time of constructing a List
  • Next by Date: Re: Re: Limit of list
  • Previous by thread: Re: List searching
  • Next by thread: Re: List searching