Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
xmonad-contrib XMonad.Config.Prime (++) appends two lists, i.e.,
[x1, ..., xm] ++ [y1, ..., yn] == [x1, ..., xm, y1, ..., yn] [x1, ..., xm] ++ [y1, ...] == [x1, ..., xm, y1, ...]
If the first list is not finite, the result is the first list.Performance considerations
This function takes linear time in the number of elements of the first list. Thus it is better to associate repeated applications of (++) to the right (which is the default behaviour): xs ++ (ys ++ zs) or simply xs ++ ys ++ zs, but not (xs ++ ys) ++ zs. For the same reason concat = foldr (++) [] has linear performance, while foldl (++) [] is prone to quadratic slowdownExamples
>>> [1, 2, 3] ++ [4, 5, 6] [1,2,3,4,5,6]
>>> [] ++ [1, 2, 3] [1,2,3]
>>> [3, 2, 1] ++ [] [3,2,1]
-
xmonad-contrib XMonad.Prelude (++) appends two lists, i.e.,
[x1, ..., xm] ++ [y1, ..., yn] == [x1, ..., xm, y1, ..., yn] [x1, ..., xm] ++ [y1, ...] == [x1, ..., xm, y1, ...]
If the first list is not finite, the result is the first list.Performance considerations
This function takes linear time in the number of elements of the first list. Thus it is better to associate repeated applications of (++) to the right (which is the default behaviour): xs ++ (ys ++ zs) or simply xs ++ ys ++ zs, but not (xs ++ ys) ++ zs. For the same reason concat = foldr (++) [] has linear performance, while foldl (++) [] is prone to quadratic slowdownExamples
>>> [1, 2, 3] ++ [4, 5, 6] [1,2,3,4,5,6]
>>> [] ++ [1, 2, 3] [1,2,3]
>>> [3, 2, 1] ++ [] [3,2,1]
(
+~ ) :: [a] -> Stream a -> Stream axmonad-contrib XMonad.Prelude Absorb a list into an infinite stream.
(
<+> ) :: ArrowPlus a => a b c -> a b c -> a b cbase Control.Arrow An associative operation with identity zeroArrow.
-
base Data.Complex forms a complex number from its real and imaginary rectangular components.
(
<++ ) :: ReadP a -> ReadP a -> ReadP abase Text.ParserCombinators.ReadP Local, exclusive, left-biased choice: If left parser locally produces any result at all, then right parser is not used.
(
<++ ) :: ReadPrec a -> ReadPrec a -> ReadPrec abase Text.ParserCombinators.ReadPrec Local, exclusive, left-biased choice: If left parser locally produces any result at all, then right parser is not used.
data ((f :: k -> Type)
:+: (g :: k -> Type)) (p :: k)base GHC.Generics Sums: encode choice between constructors
-
template-haskell Language.Haskell.TH.PprLib No documentation available.
-
template-haskell Language.Haskell.TH.PprLib No documentation available.