-
Notifications
You must be signed in to change notification settings - Fork 1
Reversed
ricardoboss edited this page Oct 16, 2023
·
2 revisions
reversed
returns a new list or string with the elements/characters in reverse order.
reversed(list subject)
reversed(string subject)
-
subject
is the list/string to reverse.
-
reversed
is a pure function and doesn't modify the original list/string.
reversed([1, 2, 3]) // [3, 2, 1]
reversed("abc") // "cba"
© 2023 Ricardo Boss • Licensed under MIT • Want to update this page? Edit it on GitHub and submit a pull request!