We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the following code:
type _$flattenN2< T extends unknown[], N extends DigitList.DigitList, N_NEXT extends DigitList.DigitList = DigitList._$decrement<N>, RESULT extends List.List = N extends [Digit.Zero] ? T : _$flattenN2<_$flattenShallow<T>, N_NEXT> > = RESULT type _$flattenShallow< T extends unknown[], RESULT extends List.List = T extends [infer H, ...infer R] ? H extends unknown[] ? [...H, ..._$flattenShallow<R>] : [H, ..._$flattenShallow<R>] : [] > = RESULT
The following clauses violate rules around tail-call rec optimization:
[...H, ..._$flattenShallow<R>]
[H, ..._$flattenShallow<R>]
I think this can be written to be more performant thereby - as well, adding stress tests would validate this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the following code:
The following clauses violate rules around tail-call rec optimization:
[...H, ..._$flattenShallow<R>]
[H, ..._$flattenShallow<R>]
I think this can be written to be more performant thereby - as well, adding stress tests would validate this.
The text was updated successfully, but these errors were encountered: