lichess-org / scalachess

Chess API written in scala. Immutable and free of side effects.
https://lichess.org
MIT License
676 stars 208 forks source link

Use match instead of pipe #556

Closed lenguyenthanh closed 4 months ago

lenguyenthanh commented 4 months ago

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

We also remove an extra import 🥳