#Lua - matrix

2 messages · Page 1 of 1 (latest)

stoic jewel
#

I’m pretty confused on how the test cases are written. It shows row and column access with a combination of dot and function notation? How can this work? ‘matrix.row(1)’

azure iris
#

The tests start with ```local matrix = Matrix('1 2 3\n4 5 6\n7 8 9')

`Matrix` has to be a function that takes a string and returns a **table**
That table needs to contain `row` and `column` keys whose values are functions.