Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10721

Re: case of inconsistent API between Drop and Part?

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: case of inconsistent API between Drop and Part?
Date 2012-07-01 06:13 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jsopr7$11u$1@smc.vnet.net> (permalink)
References <201206300917.FAA01642@smc.vnet.net> <4FEEE275.8090106@tue.nl>

Show all headers | View raw


On 6/30/2012 6:26 AM, Fred Simons wrote:


> There IS a single command:
>
> Delete[lis, {{2},{4}}]
>

<keeping discussion on the math group>

Hello;

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}}]
-------------------------
During evaluation of In[27]:= Drop::seqs: Sequence specification
(+n, -n, {+n}, {-n}, {m, n}, or {m, n, s}) expected at
position 2 in Drop[{a,b,c,d,e},{{2},{4}}]. >>

Which version did your command work on?

regards,
--Nasser

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: case of inconsistent API between Drop and Part? "Nasser M. Abbasi" <nma@12000.org> - 2012-07-01 06:13 +0000

csiph-web