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.
-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.