Re: How do you take apart a sequence?
- To: mathgroup at smc.vnet.net
- Subject: [mg102048] Re: How do you take apart a sequence?
- From: zslevi <zslevi at gmail.com>
- Date: Mon, 27 Jul 2009 06:12:40 -0400 (EDT)
- References: <h4jtdr$3fo$1@smc.vnet.net>
On Jul 27, 11:52 am, zslevi <zsl... at gmail.com> wrote: > In[75]:= > b[3, 5, 7][[1]] > > Out[75]= 3 > > In[77]:= Sequence[3, 5][[1]] > > During evaluation of In[77]:= Part::partd: Part specification \ > 3[[5,1]] is longer than depth of object. >> > > Out[77]= 3[[5, 1]] > > I'm new to Mathematica. > Is there a way to take apart a sequence? I guess I found the answer: you make it to a list with wrapping {} around, and if you need to make a list to a sequence, then use Apply.