Re: How to generate all substrings of a string

2006-07-11 Thread girish
Quoting [EMAIL PROTECTED]: > Quoting Bruno Desthuilliers <[EMAIL PROTECTED]>: > > > [EMAIL PROTECTED] a écrit : > > > Hi, > > > I want to generate all non-empty substrings of a string of length > > >=2. > > > Also, > > > each substring is to be paired with 'string - substring' part and > vice > >

Re: How to generate all substrings of a string

2006-07-11 Thread girish
Quoting Bruno Desthuilliers <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] a écrit : > > Hi, > > I want to generate all non-empty substrings of a string of length > >=2. > > Also, > > each substring is to be paired with 'string - substring' part and vice > > versa. > > Thus, ['abc'] gives me [['a', 'b