Reverse reverse
¶
Reverses the order of elements in a list or array.
Info
- Works with both arrays and lists
- Preserves the original data type (array stays array, list stays list)
- Returns a new collection, doesn't modify the original
Tip
Use reverse when you need to process elements in reverse order