Hoogle Search
Within LTS Haskell 24.27 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
LambdaHack Game.LambdaHack.Core.Prelude 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 *
-
cabal-install-solver Distribution.Solver.Compat.Prelude 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 *
reverse :: forall (n :: Nat) a . Vec n a -> Vec n aclash-prelude Clash.Explicit.Prelude The elements in a vector in reverse order.
>>> reverse (1:>2:>3:>4:>Nil) 4 :> 3 :> 2 :> 1 :> Nil
reverse :: forall (n :: Nat) a . Vec n a -> Vec n aclash-prelude Clash.Explicit.Prelude.Safe The elements in a vector in reverse order.
>>> reverse (1:>2:>3:>4:>Nil) 4 :> 3 :> 2 :> 1 :> Nil
reverse :: forall (n :: Nat) a . Vec n a -> Vec n aclash-prelude Clash.Prelude The elements in a vector in reverse order.
>>> reverse (1:>2:>3:>4:>Nil) 4 :> 3 :> 2 :> 1 :> Nil
reverse :: forall (n :: Nat) a . Vec n a -> Vec n aclash-prelude Clash.Prelude.Safe The elements in a vector in reverse order.
>>> reverse (1:>2:>3:>4:>Nil) 4 :> 3 :> 2 :> 1 :> Nil
reverse :: forall (n :: Nat) a . Vec n a -> Vec n aclash-prelude Clash.Sized.Vector The elements in a vector in reverse order.
>>> reverse (1:>2:>3:>4:>Nil) 4 :> 3 :> 2 :> 1 :> Nil
reverse :: [String] -> [String]haha Graphics.Ascii.Haha.Terminal No documentation available.
reverse :: Permutation -> Permutationhmatrix-gsl-stats Numeric.GSL.Permutation reverse the elements of the permutation
reverse :: DocumentedFunction ehslua-module-text HsLua.Module.Text Wrapper for reverse.