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.
reverse :: ListLike full item => full -> fullListLike Data.ListLike Reverse the elements in a list.
reverse :: ListLike full item => full -> fullListLike Data.ListLike.Base Reverse the elements in a list.
-
alsa-seq Sound.ALSA.Sequencer.Connect No documentation available.
-
basic-prelude BasicPrelude 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 :: Reversible t => t a -> t abrick Brick.Widgets.List No documentation available.
reverse :: Unfoldr a -> Unfoldr adeferred-folds DeferredFolds.Unfoldr Reverse the order. Use with care, because it requires to allocate all elements.
-
ghc-lib-parser GHC.Prelude.Basic 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 :: (Recursive (->) t (XNor a), Steppable (->) u (XNor a)) => t -> uyaya Yaya.Applied No documentation available.
reverse :: (Contiguous arr, Element arr a) => arr a -> arr acontiguous Data.Primitive.Contiguous Reverse the elements of an array.
reverse :: Sequential c => c -> cfoundation Foundation Reverse a collection