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\$ Uh oh, drawing attention to this old question may lead to me getting outgolfed :/ \$\endgroup\$ Commented Sep 10, 2020 at 20:46
  • \$\begingroup\$ Zero fear of that here, @cairdcoinheringaahing; this is as short as it gets in Japt. \$\endgroup\$ Commented Sep 10, 2020 at 21:19
  • \$\begingroup\$ I'm not familiar enough with Japt to know how this works, but would a translation of my Jelly answer get a similar length? \$\endgroup\$ Commented Sep 10, 2020 at 21:20
  • \$\begingroup\$ @cairdcoinheringaahing, will add an explanation shortly but it's nearly the same as yours, except I'm getting the first sub-array instead of all of them, which allows me to avoid the one that includes 1 as Japt generates sub-arrays in order of length. \$\endgroup\$ Commented Sep 10, 2020 at 21:22
  • \$\begingroup\$ @cairdcoinheringaahing, explanation added. \$\endgroup\$ Commented Sep 10, 2020 at 21:40