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*

6
  • \$\begingroup\$ This is funny! I got almost exactly the same answer yesterday (when your edit put this post to the top), but it seemed so un-golfy I didn't even submit it...! My best attempt was 92 bytes... \$\endgroup\$ Commented Nov 20, 2020 at 15:46
  • \$\begingroup\$ @DominicvanEssen there's the better version with apply. I knew it was out there, just couldn't wrap my head around it. Feel free to post it yourself. \$\endgroup\$ Commented Nov 20, 2020 at 15:49
  • 1
    \$\begingroup\$ @DominicvanEssen PS 86 bytes \$\endgroup\$ Commented Nov 20, 2020 at 15:52
  • \$\begingroup\$ Hmm... That's getting good, but... I think you should just incorporate these into your answer, instead of outgolfing yourself in your own comments...! \$\endgroup\$ Commented Nov 20, 2020 at 15:54
  • 1
    \$\begingroup\$ @DominicvanEssen fair enough! But I do think it's a shame such a matrix-friendly language is longer than the JS answer... \$\endgroup\$ Commented Nov 20, 2020 at 16:10