A bug in Partition?
- To: mathgroup at smc.vnet.net
- Subject: [mg117378] A bug in Partition?
- From: Alexey <lehin.p at gmail.com>
- Date: Wed, 16 Mar 2011 06:30:12 -0500 (EST)
Hello,
Consider the following:
In[3]:=
Partition[{a,b,c,d,e,f,g,i},3,3,-1,x]
Partition[{a,b,c,d,e,f,g,i},3,3,1,x]
Out[3]=
{{x,x,a},{b,c,d},{e,f,g}}
Out[4]=
{{a,b,c},{d,e,f},{g,i,x}}
One can see that in the first case element 'i' is dropped! Why this
happens? Is this intended behavior?