Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4092 > unrolled thread
| Started by | "Scot T. Martin" <smartin@seas.harvard.edu> |
|---|---|
| First post | 2011-07-31 11:27 +0000 |
| Last post | 2011-07-31 11:27 +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: special iterator "Scot T. Martin" <smartin@seas.harvard.edu> - 2011-07-31 11:27 +0000
| From | "Scot T. Martin" <smartin@seas.harvard.edu> |
|---|---|
| Date | 2011-07-31 11:27 +0000 |
| Subject | Re: special iterator |
| Message-ID | <j13e7p$54v$1@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@yahoo.it]
Sent: Saturday, July 30, 2011 05:58
Subject: 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 :)
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web