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.

Required fields*

5
  • 1
    \$\begingroup\$ The .* could just be . for a 1 byte saving, but you can save another 10 bytes by using Deduplicate instead of doing it manually! \$\endgroup\$ Commented Jun 21, 2019 at 18:37
  • \$\begingroup\$ @Neil Ah, didn't knew about the D-builtin, thanks! And not sure why I used .* instead of ... Thanks for -11 bytes in both versions! :) \$\endgroup\$ Commented Jun 21, 2019 at 19:25
  • 1
    \$\begingroup\$ FYI I had a slightly different approach for the same byte count: Try it online! \$\endgroup\$ Commented Jun 21, 2019 at 21:00
  • 1
    \$\begingroup\$ For the decimal version I found that -1`\B matches the desired insertion position directly. \$\endgroup\$ Commented Jun 22, 2019 at 23:17
  • \$\begingroup\$ @Neil Thanks again. \$\endgroup\$ Commented Jun 23, 2019 at 15:10