-- Status: rewritten July 2018
-- Author: Lily Silverstein

doc///
 Key
  reverse
  (reverse, BasicList)
  (reverse, String)
 Headline
  reverse a list, sequence, or string
 Usage
  reverse(L)
 Inputs
  L:{BasicList,String}
 Outputs
  R:{BasicList,String}
   containing the elements of {\tt L} in reverse order
 Description
  Text
   The output will be the same type as the input.
  Example
   reverse {5, 7, 2, 8}
   reverse (5, 7, 2, 8)
   reverse "Hello, world!"
 SeeAlso
  sort
///
