diff options
| author | Justin Raymond <justin.raymond.14@gmail.com> | 2015-11-16 17:05:36 +0100 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-16 21:59:47 +0100 |
| commit | e2d9821bf611da389df7ab8826b957d37351c29d (patch) | |
| tree | 5343ded9a390231447368e830721dc01a703853c | |
| parent | 741cf18a5e4ee5d0aa8afcab813441e7bcd4050c (diff) | |
| download | haskell-e2d9821bf611da389df7ab8826b957d37351c29d.tar.gz | |
Data.List.isSubsequenceOf documentation clarification
Fixes #11083.
Reviewers: austin, hvr, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1477
GHC Trac Issues: #11083
| -rw-r--r-- | libraries/base/Data/List.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libraries/base/Data/List.hs b/libraries/base/Data/List.hs index ab85cf4c72..693c0dd151 100644 --- a/libraries/base/Data/List.hs +++ b/libraries/base/Data/List.hs @@ -219,8 +219,9 @@ import Data.OldList hiding ( all, and, any, concat, concatMap, elem, find, import GHC.Base ( Bool(..), Eq((==)), otherwise ) --- | The 'isSubsequenceOf' function takes two lists and returns 'True' if the --- first list is a subsequence of the second list. +-- | The 'isSubsequenceOf' function takes two lists and returns 'True' if all +-- the elements of the first list occur, in order, in the second. The +-- elements do not have to occur consecutively. -- -- @'isSubsequenceOf' x y@ is equivalent to @'elem' x ('subsequences' y)@. -- |
