[Haskell-cafe] Text search

ajb at spamcop.net ajb at spamcop.net
Mon May 16 20:00:11 EDT 2005


G'day all.

Quoting Gracjan Polak <gracjan at acchsh.com>:

> Simple question: I need a function that matches string in another
> string. Something like:
>
> find (isSuffixOf "needle") (inits "haystack")
>
> This one is beautiful, but not very practical.

This one is fairly practical, but not very beautiful:

    http://haskell.org/hawiki/RunTimeCompilation

Cheers,
Andrew Bromage


More information about the Haskell-Cafe mailing list