D2: std.algorithm.find, but get part before what you were searching for

Jesse Phillips jessekphillips+D at gmail.com
Thu Mar 4 07:14:53 PST 2010

Jonathan M Davis wrote:

> Hmm. I'd thought that I'd looked at that one and determined that it didn't 
> do what I was looking for, but on another inspection of it, it does look 
> like until() will do the job. It has the potential downside that unlike 
> find, it cannot take multiple ranges to be found, but in my case (and 
> probably most cases), that's not an issue. Thanks. Maybe this is what I get 
> for coding late at night...

You should be able to use std.range.chain to combine your ranges.

More information about the Digitalmars-d-learn mailing list