darcs patch: New function isInfixOf that searches a l... (and 1
more)
Ian Lynagh
igloo at earth.li
Mon Sep 4 11:18:26 EDT 2006
On Fri, Sep 01, 2006 at 09:37:40AM -0500, John Goerzen wrote:
> Thu Aug 31 10:15:56 CDT 2006 John Goerzen <jgoerzen at complete.org>
> * New function isInfixOf that searches a list for a given sublist
>
> Example:
>
> isInfixOf "Haskell" "I really like Haskell." -> True
> isInfixOf "Ial" "I really like Haskell." -> False
>
> This function was first implemented in MissingH as MissingH.List.contains
>
> Fri Sep 1 09:36:54 CDT 2006 John Goerzen <jgoerzen at complete.org>
> * Cleaner isInfixOf suggestion from Ross Paterson
Applied, thanks.
Ian
More information about the Libraries
mailing list