Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10717 > unrolled thread
| Started by | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| First post | 2012-07-01 06:11 +0000 |
| Last post | 2012-07-01 06:11 +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-01 06:11 +0000
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Date | 2012-07-01 06:11 +0000 |
| Subject | Re: case of inconsistent API between Drop and Part? |
| Message-ID | <jsopme$106$1@smc.vnet.net> |
On 6/30/2012 7:16 AM, Nasser M. Abbasi wrote:
> On 6/30/2012 6:26 AM, Fred Simons wrote:
>
>
>> There IS a single command:
>>
>> Delete[lis, {{2},{4}}]
>>
>
> Using version 8.04. the above does not work for me, please
> see below
>
> ----------------------
> Clear[a,b,c,d,e];
> lis={a,b,c,d,e};
> Drop[lis,{{2},{4}}]
> -------------------------
Opps, I saw after sending this that you changed the command
to Delete. I tried your new RHS on my notebook with my earlier
command which had Drop and did not notice you changed the command
also. Was running fast.
As I said, I know this can be done in other ways. I have
documented 5 different ways to do this already, not using Drop.
But my question was not how to do it in other ways, but
that Drop did not have the same syntax as Part. That is all.
Thanks,
--Nasser
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web