Re: special iterator
- To: mathgroup at smc.vnet.net
- Subject: [mg120615] Re: special iterator
- From: "Scot T. Martin" <smartin at seas.harvard.edu>
- Date: Sun, 31 Jul 2011 07:25:30 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201107300958.FAA25264@smc.vnet.net>
Table allows this syntax: Table[expr, {i, {j1,j2,...}} ] uses the successive values j1,j2, ... . So, far your problem, do something like Table[expr {i, Delete[Range[1,Length@myList],j] }. ________________________________________ From: lorenzo [lorenzo_ktm at yahoo.it] Sent: Saturday, July 30, 2011 05:58 To: mathgroup at smc.vnet.net Subject: [mg120615] special iterator Hello everybody, I would like to define an iterator to explore all the elements in a list ex= cept 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 :)
- References:
- [Mathematica] special iterator
- From: lorenzo <lorenzo_ktm@yahoo.it>
- [Mathematica] special iterator