[Haskell-cafe] Data.ByteString.dropWhile

Bryan O'Sullivan bos at serpentine.com
Tue Jul 10 01:20:27 EDT 2007


Donald Bruce Stewart wrote:

> I'd just manually write a 'tidy' loop (in the Data.ByteString style) (which
> would avoid all allocations), since it seems pretty useful.

That would indeed be very useful to have as a library function.  I've 
pined for Python's strip() string method (removes leading and trailing 
whitespace) for a while.

	<b


More information about the Haskell-Cafe mailing list