On Sun, Oct 17, 2010 at 1:51 PM, Antoine Latter <aslatter@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.)