Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    \$\begingroup\$ That's beautiful, especially using a negative number to ensure padding, as well as that trick with ,& to apply the anagram transformation. Kudos! \$\endgroup\$ Commented Aug 26, 2023 at 23:17
  • \$\begingroup\$ An alternative that avoids the cap starts with */@:<:, also 36b; I had that fragment in my original (albeit much much longer) solution which generated only the 3 transformations, eschewing the original input. Not sure if that path leads to any saved bytes in your solution, though. \$\endgroup\$ Commented Aug 26, 2023 at 23:21
  • 1
    \$\begingroup\$ @ConorO'Brien Thanks. */@:<: is a nice insight. In theory it means you only have to return the 3 transforms and not the original, but I didn't see an obvious to take advantage of it -- I still needed to use the original in the calcs to get the other 3. Might be a way though. \$\endgroup\$ Commented Aug 27, 2023 at 0:28