question does haskell have a something like a wild character

Christian Brolin Christian.Brolin@carmen.se
Mon, 19 Mar 2001 09:28:15 +0100


john xxx wrote:
> 
> i want to know if HAskell has an inbuilt function in the prelude a function
> that allows me to use wild character like so:
> 
> ie. if a list of strings contains a word or a combination of words that do
> not necessarily have to be side by side. someting that works like so [..
> "hello" ..] == ["my", "tie" , "egg", "hello", "good"] would return True.
> where .. represents other elements of the list it counld be 1element or a
> hundred elements.

> whatis elem;
elem :: (Prelude.Eq b) => b -> [b] -> Bool
> elem "hello" ["my", "tie" , "egg", "hello", "good"];
True


-- 
Christian Brolin