-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Question about random generation results for tuples #600
Comments
This problem is caused by What about fix the bug and send a PR? https://github.com/samchon/typia/blob/master/src/Primitive.ts |
OK, I'll try it today. |
If a tuple has a rapper object, |
- There was a much simpler way.
Summary. I decided to separate the cases of tuples from the _Primitive type and apply _Primitive to each tuple element. There was an error in the test code related to 'Atomic Class', but according to Samchon, this is a problem related to |
@kakasoo Be fixed. Upgrade to |
The
typia.random
method generates tuples in the correct order when they are received, but inference at the type level is not. I don't know if this is a bug or a limitation of the type system, so I leave a question for now.I thought that the value of values should be [0, 1, 2, 3, 4, 5, 6], and the type inference should be the same [0, 1, 2, 3, 4, 5, 6] in the following situations. Because the union type tuple consisting of numbers from 0 to 6, and the tuple where each number and the number have a fixed index, are different.
In summary, '(0 | 1 | 2 | 3 | 4 | 5 | 6)[]' and [0, 1, 2, 3, 4, 5, 6] are different.
Thank you always for creating such a wonderful library.
The text was updated successfully, but these errors were encountered: