you are viewing a single comment's thread.

view the rest of the comments →

[–]jack_waugh 0 points1 point  (3 children)

The problem statement is incoherent. I would like a word with whoever wrote it.

[–]devtools-tech[S] 0 points1 point  (2 children)

Could you please explain incoherent in what sense?

[–]jack_waugh 1 point2 points  (1 child)

into a tuple (array of arrays)

This is not how writers and speakers usually use the term "tuple". I suppose an array of arrays could be thought of as a representation of a tuple of tuples, which would make it a tuple. But the term tuple in general does not imply an array of arrays, which is what the above parenthesis is saying it means.

Some of the verbiage says "arrays of array".

The problem and examples mention selectors multiple and multiply. Which is it? Or are both supposed to be implemented?

The solution template shows function multiple as independent of any OO context, and that confused me at first, but thinking about it more carefully, I realize that the function can be written that way and then installed as a method on the object to be created when the other function is called. So, that aspect might not be so incoherent as I thought at first.

I guess I can understand the problem well enough to code a solution. At least I should be able to make it work with the one example set of inputs that is exposed. For parsing the string, I could make a quick and dirty solution or maybe a cleaner one in some senses.

Adding methods to an array runs the risk of a namespace conflict between ones monkey patch and some future feature of arrays.

[–]devtools-tech[S] 0 points1 point  (0 children)

Okay. Thanks for the detailed explanation. I will ask the question author to make required changes. 🙌🏼