Skip to main content
3 of 8
added 32 characters in body
rydwolf
  • 18.9k
  • 2
  • 83
  • 172

JavaScript (ES6), 37 bytes

-1 thanks to @thejonymyster

x=>x.replace(/pl|y/,z=>z[1]?'y':'pl')

Swaps the first instance of pl and y, saving 1 byte when the program compresses itself. Takes the list of bytes as input, as a string.

rydwolf
  • 18.9k
  • 2
  • 83
  • 172