fixed list combinatorics



Hi list,

I am having a bad day and would really like some help (the coffee hasn't).

I have a list that looks like:
my @list = (1,2,3,4);

I would like to generate all patterns that follow:
1
2
3
4
12
123
23
34
234
1234


The list can be of any length and the next number in the list must be the
current number +1 ( i am not working with numbers - i think it is easier to
explain this way).

How do I do this? I did look at the Combinatorics module however it does
not impose fixed ordering as far as I can see.

Thanks


Relevant Pages

  • Re: little sheet metal work, Im roasting ..
    ... There's a coffee roaster in Helena MT located in a old foundry/iron ... works called the Pattern House Coffee Shop The old patterns adorn the ... thermometer only goes up to 400F, ...
    (rec.crafts.metalworking)
  • Re: Sound creates form
    ... of the coffee. ... However, the standing wave patterns ... However, it's true that most, if not all bodies, of matter do resonate ... standing in a nodal point of a standing wave. ...
    (rec.music.classical.guitar)
  • Re: Sound creates form
    ... of the coffee. ... the standing wave patterns created by plates forced to resonate at various frequencies and the behavior of iron particles in a magnetic field is standard Mr. Wizard/science fair material. ...
    (rec.music.classical.guitar)