How can i reverse a string in Common Lisp?
I want to transform "Hello World" into "dlroW olleH". In Python it is done using extended slice: "Hello World"[::-1]
.
reverse can take any sequence, including strings, so you only have to write:
> (reverse "Hello World")
"dlroW olleH"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With