reverse package:base
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 the order of the bits in a
Word16.
Reverse the order of the bits in a
Word32.
Reverse the order of the bits in a
Word64.
Reverse the order of the bits in a
Word8.
Reverse the order of the bits in a word.
Reverse the order of the bits in a 16-bit word.
Reverse the order of the bits in a 32-bit word.
Reverse the order of the bits in a 64-bit word.
Reverse the order of the bits in a 8-bit word.