reverse

Reverses the order of the items in an array. reverse cannot reverse a string.

Input

Output

plums, peaches, oranges, apples

reverse cannot be used directly on a string, but you can split a string into an array, reverse the array, and rejoin it by chaining together filters:

Input

Output

.moT rojaM ot lortnoc dnuorG

Got an issue? Or want to submit feedback?

Our new Feedback and Issue Tracker is built on GitHub Issues. Just leave your comment below and you can track our team resolve it, or browse issues others have already submitted.

Read how to use the Feedback and Issue Tracker