MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Partition


KFUPM,

In[20]:=
Flatten[{First[#],Rest[#]}&/@Partition[alist,5],1]
Out[20]=
{a,{b,c,d,e},f,{g,h,i,j},k,{l,m,n,o}}


dkr


  • Prev by Date: Re: Partition
  • Next by Date: Re: Arithmetic Puzzle (so simple it's hard)
  • Previous by thread: Re: Partition
  • Next by thread: Re: Partition