lrpalmer at gmail.com
Thu Dec 6 02:09:01 EST 2007
Just remove that if. What comes after | is already a conditional.
On Dec 6, 2007 7:03 AM, Ryan Bloor <ryanbloor at hotmail.com> wrote:
> I have a matching problem... I am wanting to identify whether or not a
> string is an opening substring of another (ignoring leading spaces). I have
> word is a single word and str is a string.
> match :: String -> String -> (Bool, String)
> match word str
> | if removeSpace str `elem` (removeSpace word) ++ rest =
> (True, rest)
> | otherwise == (False,str)
> where rest = str
> Any help?
> Can you guess the film? Search Charades!
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe