Re: special iterator

• To: mathgroup at smc.vnet.net
• Subject: [mg120633] Re: special iterator
• From: Bob Hanlon <hanlonr at cox.net>
• Date: Sun, 31 Jul 2011 23:35:52 -0400 (EDT)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com

```I think that you mean this

Table[f[i], {i, DeleteCases[Range[10], 3 | 4]}]

{f[1], f[2], f[5], f[6], f[7], f[8], f[9], f[10]}

Bob Hanlon

---- "andre.robin3" <andre.robin3 at wanadoo.fr> wrote:

=============
If you use the iterator in a Table[...], and you can do something like this
:

Table[i, { f[i] , DeleteCases[Range[10], 3 | 4}]

--->   {f[1], f[2], f[5], f[6], f[7], f[8], f[9], f[10]}

mathematica 7

see the doc of Table[ ] :
"Table[exp,{i,{i1,i2,...}}] uses the successives values i1,i2,... ."

I think It doesn't work on too old versions of mathematica (<5 ? )

"lorenzo" <lorenzo_ktm at yahoo.it> a =C3=A9crit dans le message de news:
j10kmc\$omh\$1 at smc.vnet.net...
> Hello everybody,
>
> I would like to define an iterator to explore all the elements in a list
> except for the one of index j.
>
> something like:
> {index,0,Length[myList]} and if index == j  ---> index++
>
> Is it possible?
> Can I do this without deleting the j-th element?
>
> Thank you very much for helping :)
>

```

• Prev by Date: Re: FinancialData errors
• Next by Date: Another way to represent complex function graphically
• Previous by thread: Windows possible memory leak
• Next by thread: Another way to represent complex function graphically