Re: [Haskell-cafe] Please help with double recursion

2011-05-30 Thread Dmitri O.Kondratiev
On Mon, May 30, 2011 at 11:26 AM, Richard O'Keefe wrote: > > On 28/05/2011, at 11:47 PM, Dmitri O.Kondratiev wrote: > > > Hello, > > I am trying to solve a simple task, but got stuck with double recursion - > for some reason not all list elements get processed. > > Please advice on a simple solu

Re: [Haskell-cafe] Please help with double recursion

2011-05-30 Thread Richard O'Keefe
On 28/05/2011, at 11:47 PM, Dmitri O.Kondratiev wrote: > Hello, > I am trying to solve a simple task, but got stuck with double recursion - for > some reason not all list elements get processed. > Please advice on a simple solution, using plane old recursion :) > *** Task: > From a sequence of

Re: [Haskell-cafe] Please help with double recursion

2011-05-28 Thread wren ng thornton
On 5/28/11 8:31 AM, Daniel Fischer wrote: On Saturday 28 May 2011 14:19:18, Dmitri O.Kondratiev wrote: Thanks for simple and beautiful code to get all pairs. Yet, I need to get to the next step - from all pairs to build all chains, to get as a result a list of lists: [[abcde, acde, ade, ae,] [

Re: [Haskell-cafe] Please help with double recursion

2011-05-28 Thread Daniel Fischer
On Saturday 28 May 2011 14:19:18, Dmitri O.Kondratiev wrote: > > Thanks for simple and beautiful code to get all pairs. > Yet, I need to get to the next step - from all pairs to build all > chains, to get as a result a list of lists: > > [[abcde, acde, ade, ae,] > [bcde, bde, be,] > [cde, cd, ce,

Re: [Haskell-cafe] Please help with double recursion

2011-05-28 Thread Dmitri O.Kondratiev
On Sat, May 28, 2011 at 3:57 PM, Daniel Fischer < daniel.is.fisc...@googlemail.com> wrote: > On Saturday 28 May 2011 13:47:10, Dmitri O.Kondratiev wrote: > > Hello, > > I am trying to solve a simple task, but got stuck with double recursion > > - for some reason not all list elements get processe

Re: [Haskell-cafe] Please help with double recursion

2011-05-28 Thread Daniel Fischer
On Saturday 28 May 2011 13:47:10, Dmitri O.Kondratiev wrote: > Hello, > I am trying to solve a simple task, but got stuck with double recursion > - for some reason not all list elements get processed. > Please advice on a simple solution, using plane old recursion :) > *** Task: > From a sequence

[Haskell-cafe] Please help with double recursion

2011-05-28 Thread Dmitri O.Kondratiev
Hello, I am trying to solve a simple task, but got stuck with double recursion - for some reason not all list elements get processed. Please advice on a simple solution, using plane old recursion :) *** Task: >From a sequence of chars build all possible chains where each chain consists of chars th