MathGroup Archive 2001

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

Search the Archive

RE: Q: DeleteCases

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27913] RE: [mg27862] Q: DeleteCases
  • From: "David Park" <djmp at earthlink.net>
  • Date: Fri, 23 Mar 2001 04:31:41 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Robert,

Use Select.

t = Range[4];

Select[t, # < 3 &]
{1, 2}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 



> From: Robert Schuerhuber [mailto:robert.schuerhuber at gmx.at]
To: mathgroup at smc.vnet.net
> 
> 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
> 
> 


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