Skip to main content
2 of 4
added 942 characters in body
Adnan
  • 44.7k
  • 6
  • 83
  • 248

#05AB1E, 16 bytes

Uses the fact that 05AB1E has a constant predefined to "()<>[]{}" and isn't affected the visually reversion.

Code:

,q‡"}{][><)("užR

Explanation:

,                 # Pop and print the input.
 q                # Quit.
  ‡"}{][><)("užR  # This part is ignored.

Try it online!


Reversed:

Ržu"()<>[]{}"‡q,

Explanation:

R                 # Reverse the input.
 žu               # Short for "()<>[]{}".
   "()<>[]{}"     # Push this string.
             ‡    # Transliterate (no-op, since everything is transliterated to itself).
              q   # Quit and implicitly print.
               ,  # This part is ignored.

Try it online!


Visually reversed:

Ržu")(><][}{"‡q,

Explanation:

R                 # Reverse the input.
 žu               # Short for "()<>[]{}".
   ")(><][}{"     # Push this string.   
             ‡    # Transliterate (giving the visually reversed string).
              q   # Quit and implicitly print.
               ,  # This part is ignored.       

Try it online!

Uses CP-1252 encoding.

Adnan
  • 44.7k
  • 6
  • 83
  • 248