Am 16.06.2012 12:05, schrieb Carlos López Camey: > I think this function might be of help in Data.List. Why I believe it > would be good to have it in base: `elem` is accompanied by `findIndex` > but `isInfixOf` doesn't have an accompanist. How about: findIndex (isPrefixOf "def") $ tails "abcdefgh" ?