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*

3
  • 1
    \$\begingroup\$ 117 bytes I think I/O defaults also allow taking in z=[] as input and modifying it without returning. \$\endgroup\$ Commented May 10, 2023 at 17:47
  • 1
    \$\begingroup\$ 115 bytes (includes @ceilingcat's suggestion) \$\endgroup\$ Commented May 14, 2023 at 8:16
  • \$\begingroup\$ z[k]>(k%x>i%x) saves a byte, switching z from list to tuple saves another (lambda x,*z:/z:=z+(...,)) \$\endgroup\$ Commented May 14, 2023 at 11:27