-
Hi! mapping is not necessary: - .map(|n| &n[1..])
- .filter(|n| win_seq.chunks_exact(3).map(|n| &n[1..]).any(|c| &c == n))
+ .filter(|n| win_seq.chunks_exact(3).any(|c| &c == n)) Did you do that for performance? Maybe you could enable "Discussion" for this project 😄 |
Beta Was this translation helpful? Give feedback.
Answered by
timvisee
Dec 5, 2023
Replies: 1 comment
-
Correct, it's for performance.
Good idea! Doing that now. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
timvisee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correct, it's for performance.
Good idea! Doing that now.