MathGroup Archive 2006

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

Search the Archive

Re: simple question


In[17]:=
patternMatchReverse[lst_List]:=
    Flatten[Append[lst,{}]//.{x_,y___,{z___}}:>{y,{x,z}}];

In[18]:=
patternMatchReverse[Range[10]]
Out[18]=
{10,9,8,7,6,5,4,3,2,1}

dkr


  • Prev by Date: Re: Using Map with function that has options...
  • Next by Date: FileNames subdirectory count discrepancy
  • Previous by thread: Re: simple question
  • Next by thread: Re: simple question