darcs patch: New function isInfixOf that searches a l... (and 1 more)

Thu Aug 31 10:15:56 CDT 2006 John Goerzen

On Fri, Sep 01, 2006 at 09:37:40AM -0500, John Goerzen wrote:
Thu Aug 31 10:15:56 CDT 2006 John Goerzen
* 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
* Cleaner isInfixOf suggestion from Ross Paterson
Applied, thanks. Ian
participants (2)
-
Ian Lynagh
-
John Goerzen