Using array method to calculate arraySizeMethod #1292
Replies: 1 comment
-
Hi @BrianHung, sorry for such a late reply.
Unfortunately, it is not possible because The exact size of the result of the function For reference, you can look at the Hope this answer will be helpful for you. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to implement the
UNIQUE
array function but am running into a concept problem of how to implement anarraySizeMethod
for it.The confusion is that the array size for
UNIQUE
depends on the arguments, and as a result is variable. For example, [1, 1, 2] would have dimensions {width: 1, height: 2} while [1, 2, 3] would have {width: 1, height 3}.I would like to re-use the method that I implemented for
UNIQUE
to calculate the arraySizeMethod for the function; is that possible?So far I have
Beta Was this translation helpful? Give feedback.
All reactions