i need a function in haskell, which checks whether a part of a String Matches with some Strings in a list and return all the Strings,which Matches the part of them. I think with an example, it's easier for you to understand my Problem. If i have a list of Strings: ["abc","abs","ghi"] and a part of a string "ab" the function should return "abc" and "abs". like
Main> matches "ab" ["abc","abs","ghi"]
Main>["abc","abs"]
Aucun commentaire:
Enregistrer un commentaire