[Haskell-cafe] Re: Text: find

Bryan O'Sullivan bos at serpentine.com
Sun Oct 17 18:05:53 EDT 2010


On Sun, Oct 17, 2010 at 1:51 PM, Antoine Latter <aslatter at gmail.com> wrote:

>
> What would the definition of a function of the form:
>
> > find :: (Text -> Bool) -> Text -> Maybe Text
>
> look like?
>

Can you be more specific? I assume you mean that the only sensible return
values are Nothing or the entire Text for which the predicate first returns
True? (In other words, that this function doesn't actually seem to have a
useful return type.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101017/b5a7860b/attachment.html


More information about the Haskell-Cafe mailing list