Is reversing a string an example of a one to one function?

207 Views Asked by At

The word "apple" reversed yields "elppa". No other input can produce the same output.

And in such a scenario can palindromes also be included in the list of permissible strings.

Was wondering about a non mathematical real world example of a one to one function. Thanks.