
16 Jun
2012
16 Jun
'12
6:25 a.m.
Am 16.06.2012 12:05, schrieb Carlos López Camey:
Hello,
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" ?