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*

8
  • \$\begingroup\$ \n should becomes ;;;;;;;;;;#. \$\endgroup\$ Commented May 23, 2017 at 9:13
  • \$\begingroup\$ Hmm ... that's strange. Guess I'll have to roll back to the longer solution, so. Thank, @Neil. \$\endgroup\$ Commented May 23, 2017 at 9:17
  • 2
    \$\begingroup\$ I think you could change . to [^], which would still leave it a byte shorter than map/join? \$\endgroup\$ Commented May 23, 2017 at 9:18
  • \$\begingroup\$ Yup, that did the job, @Neil :) \$\endgroup\$ Commented May 23, 2017 at 9:23
  • \$\begingroup\$ Just a heads up, the join() in your previous answer was unnecessary given the specification for ;#, and you can also declare that the input for your function is an array of characters, though the second suggestion is a bit of a stretch. Either way, that brings you down to at most 48 bytes. \$\endgroup\$ Commented May 23, 2017 at 21:55