Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
derivedSequence :: SequenceDerivable s i => Sequence s irelational-query Database.Relational.Arrow No documentation available.
unsafeSpecifySequence :: TableDerivable s => (s -> i) -> Pi s i -> Sequence s irelational-query Database.Relational.Arrow Unsafely specify sequence table.
boundSequence :: SeqBinding r s i -> Sequence s irelational-query Database.Relational.Sequence sequence table record
derivedSequence :: SequenceDerivable s i => Sequence s irelational-query Database.Relational.Sequence No documentation available.
unsafeSpecifySequence :: TableDerivable s => (s -> i) -> Pi s i -> Sequence s irelational-query Database.Relational.Sequence Unsafely specify sequence table.
subConsequence :: Thy -> [Class Expr] -> Expr -> Expr -> Expr -> Boolspeculate Test.Speculate.Engine Is the equation a consequence of substitution? > subConsequence (x == y) (x + y) (x + x) == True > subConsequence (x <= y) (x + y) (x + x) == False -- not sub > subConsequence (abs x == abs y) (abs x) (abs y) == True > subConsequence (abs x == 1) (x + abs x) (20) == False (artificial)
transConsequence :: Shy -> Equation -> Boolspeculate Test.Speculate.SemiReason No documentation available.
isSubsequenceOf :: Eq a => [a] -> [a] -> BoolLambdaHack Game.LambdaHack.Core.Prelude 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 x `elem` (subsequences y). Note: isSubsequenceOf is often used in infix form.
Examples
>>> "GHC" `isSubsequenceOf` "The Glorious Haskell Compiler" True
>>> ['a','d'..'z'] `isSubsequenceOf` ['a'..'z'] True
>>> [1..10] `isSubsequenceOf` [10,9..0] False
For the result to be True, the first list must be finite; for the result to be False, the second list must be finite:>>> [0,2..10] `isSubsequenceOf` [0..] True
>>> [0..] `isSubsequenceOf` [0,2..10] False
>>> [0,2..] `isSubsequenceOf` [0..] * Hangs forever*
-
LambdaHack Game.LambdaHack.Core.Prelude The subsequences function returns the list of all subsequences of the argument.
Laziness
subsequences does not look ahead unless it must:>>> take 1 (subsequences undefined) [[]] >>> take 2 (subsequences ('a' : undefined)) ["","a"]Examples
>>> subsequences "abc" ["","a","b","ab","c","ac","bc","abc"]
This function is productive on infinite inputs:>>> take 8 $ subsequences ['a'..] ["","a","b","ab","c","ac","bc","abc"]
dbStateCmdSequence :: DatabaseState be -> !Seq (MigrationCommand be)beam-migrate Database.Beam.Migrate.Actions The current sequence of commands we've committed to in this state