MathGroup Archive 1998

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

Search the Archive

Re: from Compositions to trees

Hi Wouter,

I think that what you want is ReplaceRepeated.  Is this what you're
looking for?  The idea with the k>0 is to go clear down to the leaves.

budding = k_Integer/;k>0 :> Sequence @@ (t@@#&)/@Compositions[k-1,3]

Now try


Even if this maybe isn't exactly what you want, I think you can use the
ReplaceRepeated idea to get what you want.


  • Prev by Date: Re: Subscripting Matrices (Syntax Question ?)
  • Next by Date: RE: Labeling graphs
  • Previous by thread: from Compositions to trees
  • Next by thread: Series of a Root object