Re: Proposal/Patch: Add findSublistIndex in Data.List

On Sat, 16 Jun 2012, Carlos López Camey wrote:
How about:
findIndex (isPrefixOf "def") $ tails "abcdefgh"
I find that much better :-)
Maybe we could add advanced uses of functions from Data.List to their Haddock documentation. But where to add this example? To 'isPrefixOf' or 'findIndex' or 'tails'? Or you might setup a HaskellWiki page listing such examples.

2012/6/16 Henning Thielemann
On Sat, 16 Jun 2012, Carlos López Camey wrote:
How about:
findIndex (isPrefixOf "def") $ tails "abcdefgh"
I find that much better :-)
Maybe we could add advanced uses of functions from Data.List to their Haddock documentation. But where to add this example? To 'isPrefixOf' or 'findIndex' or 'tails'? Or you might setup a HaskellWiki page listing such examples.
Good idea, I found one that suits this content and added your function to it, here: http://www.haskell.org/haskellwiki/List_function_suggestions#Indexing_lists.
participants (2)
-
Carlos López Camey
-
Henning Thielemann