Re: How to work with In?
- To: mathgroup at smc.vnet.net
- Subject: [mg114008] Re: How to work with In?
- From: Simon <simonjtyler at gmail.com>
- Date: Sat, 20 Nov 2010 18:23:57 -0500 (EST)
- References: <ic5ibq$3vp$1@smc.vnet.net>
On Nov 19, 6:08 pm, kj <no.em... at please.post> wrote: > I want to create a list consisting of the (unevaluated) expressions > that were entered in a particular subrange of the In array. I.e., > what I want is (almost) something like this: > > Table[In[i], {i, 300, 375}] > > except that this won't work, because each In[i] will be evaluated. > This also fails > > Table[Hold[In[i]], {i, 300, 375}] > > because now the i is not evaluated, so the result is a list of > multiple copies of the expression Hold[In[i]]. > > How can I do what I'm trying to do? > > TIA! > > ~kj You could use InString[] instead of In[]: Table[ToExpression[InString[i], StandardForm, Hold], {i, 300, 375}] Simon