Re: Drop elements from list
- To: mathgroup at smc.vnet.net
- Subject: [mg94197] Re: Drop elements from list
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sat, 6 Dec 2008 19:58:40 -0500 (EST)
- References: <ghdmqj$flr$1@smc.vnet.net>
Hi, a = Table[b[i], {i, 20}]; and Drop[Drop[a, {7, 10}], {2, 5}] and it works .. Regards Jens SigmundV wrote: > Dear group, > > Consider a list of length, say, 20: > > a = RandomReal[{},20]; > > How would you then drop/delete elements, say, 2-5 and 7-10 from this > list? The built-in function Drop does not seem to include such a > possibility. I should add that I do not have access to Mathematica 7, > so any solution should work in version 6. > > Kind regards, > Sigmund >