fixed list combinatorics
- From: perlmunky@xxxxxxxxxxxxxx (Dan Klose)
- Date: Wed, 28 Nov 2007 14:32:07 +0000
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
- Follow-Ups:
- Re: fixed list combinatorics
- From: John W . Krahn
- Re: fixed list combinatorics
- From: Dr.Ruud
- Re: fixed list combinatorics
- From: Rob Dixon
- Re: fixed list combinatorics
- From: Yitzle
- Re: fixed list combinatorics
- Prev by Date: Re: Returning multiple MySQL rows from module
- Next by Date: Time Comparison Easier Than I'm Making them
- Previous by thread: How to check if a function reference is valid or not?
- Next by thread: Re: fixed list combinatorics
- Index(es):