Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
reverse :: forall ty (n :: Nat) . PrimType ty => BlockN n ty -> BlockN n tybasement Basement.Sized.Block No documentation available.
reverse :: forall (n :: Nat) a . ListN n a -> ListN n abasement Basement.Sized.List Reverse a list
reverse :: forall ty (n :: Nat) . PrimType ty => UVect n ty -> UVect n tybasement Basement.Sized.UVect No documentation available.
reverse :: forall (n :: Nat) ty . Vect n ty -> Vect n tybasement Basement.Sized.Vect No documentation available.
-
basement Basement.String Reverse a string
reverse :: PrimType ty => UArray ty -> UArray tybasement Basement.UArray No documentation available.
-
byteslice Data.Bytes.Chunks Reverse chunks but not the bytes within each chunk.
-
ghc-internal GHC.Internal.Data.List reverse xs returns the elements of xs in reverse order. xs must be finite.
Laziness
reverse is lazy in its elements.>>> head (reverse [undefined, 1]) 1
>>> reverse (1 : 2 : undefined) *** Exception: Prelude.undefined
Examples
>>> reverse [] []
>>> reverse [42] [42]
>>> reverse [2,5,7] [7,5,2]
>>> reverse [1..] * Hangs forever *
-
ghc-internal GHC.Internal.Data.OldList reverse xs returns the elements of xs in reverse order. xs must be finite.
Laziness
reverse is lazy in its elements.>>> head (reverse [undefined, 1]) 1
>>> reverse (1 : 2 : undefined) *** Exception: Prelude.undefined
Examples
>>> reverse [] []
>>> reverse [42] [42]
>>> reverse [2,5,7] [7,5,2]
>>> reverse [1..] * Hangs forever *
-
ghc-internal GHC.Internal.List reverse xs returns the elements of xs in reverse order. xs must be finite.
Laziness
reverse is lazy in its elements.>>> head (reverse [undefined, 1]) 1
>>> reverse (1 : 2 : undefined) *** Exception: Prelude.undefined
Examples
>>> reverse [] []
>>> reverse [42] [42]
>>> reverse [2,5,7] [7,5,2]
>>> reverse [1..] * Hangs forever *