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
  • \$\begingroup\$ Tip: you can simplify it down to 27 with loop. \$\endgroup\$ Commented Jun 4, 2021 at 14:54
  • \$\begingroup\$ @9214 Thanks, that is exactly the command I needed, and apparently, it returns a value, so I can even simplify it down to 26 bytes! \$\endgroup\$ Commented Jun 4, 2021 at 15:07
  • \$\begingroup\$ Gah, I said 27 because of the missed space after 1... \$\endgroup\$ Commented Jun 4, 2021 at 15:09
  • 1
    \$\begingroup\$ Is this answer valid without func[a b] part? Because it looks like, say, omitting lambda a,b: part in Python, which is invalid (makes the answer a snippet with a and b hardcoded). \$\endgroup\$ Commented Jun 9, 2021 at 0:12
  • \$\begingroup\$ @Bubbler Fixed. I think I understand now how function submissions work. Thanks for pointing that out! \$\endgroup\$ Commented Jun 9, 2021 at 17:54