Skip to main content
added 59 characters in body
Source Link
Giuseppe
  • 29.4k
  • 3
  • 33
  • 106

Gaia, 2 bytes

_@ 

Try it online!

_	| implicit push input and negate @	| push next input OR push last input (when all inputs have been pushed) 	| implicit print TOS 

Reversed:

@	| push input _	| negate 	| implicit print TOS 

Gaia, 2 bytes

_@ 

Try it online!

_	| implicit push input and negate @	| push input 	| implicit print TOS 

Reversed:

@	| push input _	| negate 	| implicit print TOS 

Gaia, 2 bytes

_@ 

Try it online!

_	| implicit push input and negate @	| push next input OR push last input (when all inputs have been pushed) 	| implicit print TOS 

Reversed:

@	| push input _	| negate 	| implicit print TOS 
Source Link
Giuseppe
  • 29.4k
  • 3
  • 33
  • 106

Gaia, 2 bytes

_@ 

Try it online!

_	| implicit push input and negate @	| push input 	| implicit print TOS 

Reversed:

@	| push input _	| negate 	| implicit print TOS