I wrote this code to make a function removing every character c in string s.
delete :: Char -> String -> String
delete c s =
case s of
("") -> ""
(c:t) -> delete c t
(a:t) -> a : delete c t
I understand that c is just a placeholder for any Char, not the actual c given as first arg.
Is there a way I can use the c argument provided in delete c s in the case construct ?