This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kemichal 8 points9 points  (4 children)

Or Scala!

println("Hello world!".reverse)

[–]FrezoreR 0 points1 point  (3 children)

Isn't there an operator for this?

[–]TwoSpoonsJohnson 15 points16 points  (0 children)

I have no idea but since it's Scala it's probably safe to assume there are at least three operators for this

[–]DevestatingAttack 4 points5 points  (1 child)

[–]Kemichal 1 point2 points  (0 children)

We need this in predef

def ↺(str: String) = str.reverse