[commit: ghc] master: Data.List.isSubsequenceOf documentation clarification (e2d9821)
git at git.haskell.org
git at git.haskell.org
Mon Nov 16 21:04:26 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/e2d9821bf611da389df7ab8826b957d37351c29d/ghc
>---------------------------------------------------------------
commit e2d9821bf611da389df7ab8826b957d37351c29d
Author: Justin Raymond <justin.raymond.14 at gmail.com>
Date: Mon Nov 16 17:05:36 2015 +0100
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
>---------------------------------------------------------------
e2d9821bf611da389df7ab8826b957d37351c29d
libraries/base/Data/List.hs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libraries/base/Data/List.hs b/libraries/base/Data/List.hs
index ab85cf4..693c0dd 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)@.
--
More information about the ghc-commits
mailing list