Skip to content
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

Use match instead of pipe #556

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

lenguyenthanh
Copy link
Member

@lenguyenthanh lenguyenthanh commented Jul 10, 2024

With .match We have an equivalent of pipe without extra allocation: https://gist.github.com/lenguyenthanh/6dd8ff4b3cafc0d016fd9e86d1022d5f

We also remove an extra import 🥳

With .match We have an equivalent of `pipe` without extra allocation:
https://gist.github.com/lenguyenthanh/6dd8ff4b3cafc0d016fd9e86d1022d5f
@ornicar ornicar merged commit 5cba979 into lichess-org:master Jul 10, 2024
3 checks passed
@lenguyenthanh lenguyenthanh deleted the match-for-pipe branch July 10, 2024 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants