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


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

Re: special iterator

From "Scot T. Martin" <smartin@seas.harvard.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: special iterator
Date 2011-07-31 11:27 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j13e7p$54v$1@smc.vnet.net> (permalink)
References <201107300958.FAA25264@smc.vnet.net>

Show all headers | View raw


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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: special iterator "Scot T. Martin" <smartin@seas.harvard.edu> - 2011-07-31 11:27 +0000

csiph-web