Skip to main content
9 events
when toggle format what by license comment
Aug 20, 2019 at 14:18 history edited Robert S. CC BY-SA 4.0
deleted 12 characters in body
Aug 19, 2019 at 22:19 comment added Giuseppe 76 with aliasing of gsub
Aug 19, 2019 at 21:27 history edited Robert S. CC BY-SA 4.0
added 56 characters in body
Aug 19, 2019 at 21:24 comment added Robin Ryder You should specify that you assume the input x doesn't include the character 2; it fails in this case (TIO).
Aug 19, 2019 at 21:14 comment added Khuldraeseth na'Barya If you feel like using pryr, you can get it down to 73.
Aug 19, 2019 at 20:15 comment added Robert S. @Sumner18 Thanks. Yeah, gsub definitely makes more sense.
Aug 19, 2019 at 20:13 history edited Robert S. CC BY-SA 4.0
added 116 characters in body
Aug 19, 2019 at 20:08 comment added Sumner18 Can do a double gsub for -13 bytes instead. tio.run/…
Aug 19, 2019 at 19:19 history answered Robert S. CC BY-SA 4.0