List.rev
has quadratic complexity
#19839
Labels
kind: wish
Feature or enhancement requests.
needs: triage
The validity of this issue needs to be checked, or the issue itself updated.
Is your feature request related to a problem?
The definition of
List.rev
in the standard library is quadratic :This is very bad for such a common function.
Proposed solution
It should instead use an accumulator to obtain linear complexity :
Alternative solutions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: