Enum

reverse/2

reverse(enumerable, tail)

Returns the elements from enumerable in reverse order and then appends tail to it.