Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: case of inconsistent API between Drop and Part?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg127126] Re: case of inconsistent API between Drop and Part?
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Sun, 1 Jul 2012 02:11:17 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201206300917.FAA01642@smc.vnet.net> <4FEEE275.8090106@tue.nl>
  • Reply-to: nma at 12000.org

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



  • Prev by Date: Re: how to make a list of rules with 2 other lists composed by different kinds of elements
  • Next by Date: Re: How to rectify the error for NDSolve ?
  • Previous by thread: Re: case of inconsistent API between Drop and Part?
  • Next by thread: Re: case of inconsistent API between Drop and Part?