Skip to main content
4 of 4
deleted 1 character in body
Addison Crump
  • 11.2k
  • 1
  • 44
  • 90

Vitsy, 13 12 Bytes

Byte size reduced by newest version ending execution on end of file*.

I\[i1+2M]l\N
I\             Repeat everything in the [] for input stack's length.
  [i1+2M]      Grab an item from the input, add 1 and modulo 2 (to invert the number).
         l\    Repeat the next character for the currently active program stack's length.
           N   Output the top item of the stack as a number.

*In situations that don't involve special cases.

Addison Crump
  • 11.2k
  • 1
  • 44
  • 90