Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10742 > unrolled thread
| Started by | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| First post | 2012-07-02 09:30 +0000 |
| Last post | 2012-07-02 09:30 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: case of inconsistent API between Drop and Part? "Nasser M. Abbasi" <nma@12000.org> - 2012-07-02 09:30 +0000
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Date | 2012-07-02 09:30 +0000 |
| Subject | Re: case of inconsistent API between Drop and Part? |
| Message-ID | <jsrpnc$d4g$1@smc.vnet.net> |
On 6/30/2012 11:20 PM, Bob Hanlon wrote:
> To drop elements 2 and 4 in one command:
>
> lis = {a, b, c, d, e};
>
> Drop[lis, {2, 4, 2}]
>
> {a, c, e}
>
>
I knew someone will say that :)
But that is clearly not what I am asking, as it is not
a general solution. It is using a special case of
"Drop[list,{m,n,s}]
gives list with elements m through n in steps of s dropped"
which is clearly not a general solution. I happend to have
asked using an example which allows this in this one case only.
Ok, here is the question again:
Use one call to Drop to remove only elements
2,3,7,11, and 12
from
lis={q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m}
regards,
--Nasser
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web