Skip to main content
deleted 163 characters in body
Source Link

Gol><>, 54 bytes

Ih*mIIh-I 

Basically takes input, then outputs and halts, then if it is reversed it takes an input, pushes -1, then multiplies the input by -1, then outputs and halts.One byte golfed off courtesy of JoKing

Try it online!Try it online!

Gol><>, 5 bytes

Ih*mI 

Basically takes input, then outputs and halts, then if it is reversed it takes an input, pushes -1, then multiplies the input by -1, then outputs and halts.

Try it online!

Gol><>, 4 bytes

Ih-I 

One byte golfed off courtesy of JoKing

Try it online!

Source Link

Gol><>, 5 bytes

Ih*mI 

Basically takes input, then outputs and halts, then if it is reversed it takes an input, pushes -1, then multiplies the input by -1, then outputs and halts.

Try it online!