Repeat vs Rearrange: Is there anything rearrange does that repeat cannot? #243
Answered
by
arogozhnikov
Interpause
asked this question in
Q&A
-
Besides the whole readability thing, I noticed that |
Beta Was this translation helpful? Give feedback.
Answered by
arogozhnikov
Mar 1, 2023
Replies: 1 comment 1 reply
-
Hi @Interpause |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Interpause
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Interpause
That's correct.
reduce
can also work asrearrange
.It is purely readability thing: when you see
rearrange
, you know number of elements stays the same.