Add the "matrix" practice exercise?

Title: Add the “matrix” practice exercise?

Hi! The “matrix” exercise (8 canonical cases) is in problem-specifications but not in the Bash track. I would like to add it.

Proposed CLI:

bash matrix.sh <matrix> {row|column} <index>
  • The matrix is one string with newlines between rows and spaces between numbers. The tests pass it like $'1 2\n3 4'.
  • The canonical property is the second argument, and the canonical index (1-based) is the third.
  • The output is the numbers of that row or column on one line, separated by spaces.
  • All 8 canonical cases are included.

Questions: is this argument order a good fit for the track, and would one number per line be better than one line? I have a working example solution, the generated tests, and instructions.append.md describing the CLI. Happy to change anything before opening a PR.
Note: matrix is currently listed under foregone in config.json. If it still makes sense to add it, I would remove it from that list in the same PR. If you would rather keep it foregone, I am happy to drop the idea.

I’m happy to leave matrix as foregone. I don’t think it adds much value here. I’m curious to see if the other maintainers feel the same.

The natural implementation is a 2-dimensional matrix. Since bash does not have that, it’s not really a natural fit for the language. We can get around it with crafted keys in an associative array, but I don’t think there’s a lot of learning there.