Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
hledger-web Hledger.Web.Import (++) 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]
type family (xs :: [k])
++ (ys :: [k]) :: [k]monoidal-functors Control.Category.Tensor.Expr No documentation available.
-
sized Data.Sized Infix version of append. Since 0.7.0.0
(
++ ) :: Unboxable a => Vector a -> Vector a -> Vector aunboxing-vector Data.Vector.Unboxing No documentation available.
(
++ ) :: forall (n :: Nat) (m :: Nat) a . SNatI n => Vec n a -> Vec m a -> Vec (Plus n m) avec Data.Vec.DataFamily.SpineStrict Append two Vec.
>>> ('a' ::: 'b' ::: VNil) ++ ('c' ::: 'd' ::: VNil) 'a' ::: 'b' ::: 'c' ::: 'd' ::: VNil
(
++ ) :: forall (n :: Nat) a (m :: Nat) . Vec n a -> Vec m a -> Vec (Plus n m) avec Data.Vec.Lazy Append two Vec.
>>> ('a' ::: 'b' ::: VNil) ++ ('c' ::: 'd' ::: VNil) 'a' ::: 'b' ::: 'c' ::: 'd' ::: VNil
(
++ ) :: forall (n :: Nat) (m :: Nat) a . SNatI n => Vec n a -> Vec m a -> Vec (Plus n m) avec Data.Vec.Lazy.Inline Append two Vec.
>>> ('a' ::: 'b' ::: VNil) ++ ('c' ::: 'd' ::: VNil) 'a' ::: 'b' ::: 'c' ::: 'd' ::: VNil
type family (a :: [k])
++ (b :: [k]) :: [k]wakame Wakame.Utils >>> :kind! '[Bool, Int] ++ '[] '[Bool, Int] ++ '[] :: [*] = '[Bool, Int] >>> :kind! '[Bool, Int] ++ '[Char, Word] '[Bool, Int] ++ '[Char, Word] :: [*] = '[Bool, Int, Char, Word]
(
++ ) :: Monoid m => m -> m -> mclassy-prelude-yesod ClassyPrelude.Yesod No documentation available.
-
constrained-categories Control.Category.Constrained.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]