How to reverse a string in Julia?
I have
julia> str = "Hello World!"
and I would like str to be reversed. Something like
julia> str_reverse = str.reverse
str_reverse should be: "!dlroW olleH"
Is there some way to do this without a for-loop?
You can use the reverse function:
julia> reverse(str)
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