19 Mar
2001
19 Mar
'01
8:28 a.m.
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