MathGroup Archive 2001

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

Search the Archive

Re: Q: DeleteCases

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27886] Re: [mg27862] Q: DeleteCases
  • From: BobHanlon at aol.com
  • Date: Fri, 23 Mar 2001 04:31:06 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

DeleteCases[t, _?(#1 > 2 & )]

Select[t, #1 <= 2 & ]

Cases[t, _?(#1 <= 2 & )]

Bob Hanlon

In a message dated 2001/3/22 4:51:58 AM, robert.schuerhuber at gmx.at writes:

>i've a rather simple question with the deletecases, but unfortunately i
>couldn't find a clue in the mathematica-help (again ..):
>
>i want to to use DeleteCases to remove number of lists, which are
>greater than a given limit, eg.
>
>t={1,2,3,4}
>DeleteCases[t, ????]
>
>should remove all entries greater than 2, therefore
>
>t={1,2}
>
>which pattern do i have to use?
>


  • Prev by Date: Re: Q: DeleteCases
  • Next by Date: AW: Random number generation
  • Previous by thread: Re: Q: DeleteCases
  • Next by thread: Re: Q: DeleteCases