Proposal: Add isSubsequenceOf to Data.List

Kim-Ee Yeoh ky3 at atamo.com
Tue Oct 14 19:27:14 UTC 2014


On Mon, Oct 13, 2014 at 10:34 PM, Niklas Hambüchen <mail at nh2.me> wrote:

> * isSubsequenceOf (dual of subsequences)


+1

Suggested haddock to assist usage:

Every infix of str is also a subsequence of str, but the converse doesn't
generally hold. E.g. "ac" `isSubsequenceOf` "abc" is True, but "ac"
`isInfixOf` "abc" is False.

As negative examples, neither "ba" nor "bca" isSubsequenceOf "abc".


-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20141015/73dec52a/attachment.html>


More information about the Libraries mailing list