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
  • $\begingroup$ I have downvoted because this is Mathematica StackExchange, so the answers are supposed to be written in Wolfram Language. $\endgroup$ Commented Aug 3, 2023 at 14:11
  • $\begingroup$ @Domen Fair enough ¯\_(ツ)_/¯. I tried to post it as a comment, but couldn't do a code block. I found the code in the other answers rather verbose, and figured someone else might translate my attempt to Mathematica and "upgrade" this answer. I'm sure it's easy to do with a mixture of Table, Select and what-have-you. $\endgroup$ Commented Aug 3, 2023 at 14:34
  • 2
    $\begingroup$ @Domen I wrote some Mathematica code - I'd appreciate someone making it more idiomatic, if possible. $\endgroup$ Commented Aug 3, 2023 at 15:00