[Haskell-cafe] Simple string tokenizer?

Thedward Blevins thedward at barsoom.net
Wed Jun 15 18:29:53 CEST 2011


On Jun 15, 2011 11:22 AM, "Dmitri O.Kondratiev" <dokondr at gmail.com> wrote:
>
> Sorry if this question was asked billions of times already, but I can not
find a simple string tokenizer.
> All I need is to split a line in chunks at specified delimiter such as
(,), nothing more. Don't want to write it myself for two reasons: 1) have to
write lots of other code in very short time 2) don't want undermine idea of
code reuse )
>

Sounds like you want `Data.List.Split.splitOn` from the 'split' package (
http://hackage.haskell.org/package/split ).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110615/2e4d1e37/attachment.htm>


More information about the Haskell-Cafe mailing list