Re: Q: DeleteCases
- To: mathgroup at smc.vnet.net
- Subject: [mg27882] Re: Q: DeleteCases
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 23 Mar 2001 04:31:03 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <99chk4$8bn@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
no pattern, use Select[]
Select[t,#<=2 &]
Regards
Jens
Robert Schuerhuber wrote:
>
> hi!
> 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?
>
> regards, robert