Re: Repeatedly applying functions until a condition is met

2012-07-27 Thread Adrian Mowat
Brilliant! Thanks Denis Those are 2 great tips. I had looked through the documentation until my eyes went square but I'm not very well practiced with all the functions so I decided to ask the community for help. take-while was exactly what I needed. Many Thanks Adrian On Thursday, 26 July

Re: Repeatedly applying functions until a condition is met

2012-07-26 Thread Denis Labaye
On Thu, Jul 26, 2012 at 9:58 AM, Adrian Mowat wrote: > Hi Folks > > I have a program that parses a string into rows and fields by repeatedly > applying a sequence of functions repeatedly until the end of the string is > reached. Each function (or chunker, as I have called them) knows how to > fin

Repeatedly applying functions until a condition is met

2012-07-26 Thread Adrian Mowat
Hi Folks I have a program that parses a string into rows and fields by repeatedly applying a sequence of functions repeatedly until the end of the string is reached. Each function (or chunker, as I have called them) knows how to find the next field in the stream and returns the field and the r