code: function (value, index) {
        const m = matrix(value)
        const subset = m.subset(index) // returns a Matrix
        return index.isScalar()
          ? subset
          : subset.valueOf() // return an Array (like the input)
      }
docs: get subset