Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Linter suggesting to use exists instead of foldLeft, but there is no exists on the collection. #42

Closed
TomasMikula opened this issue Jun 27, 2016 · 2 comments

Comments

@TomasMikula
Copy link
Contributor

Hi, I'm getting a warning

Unless there are side-effects, this col.foldLeft can be replaced by col.exists.

which in principle would be correct, except there is no exists on my collection (scalaz.NonEmptyList).

@TomasMikula
Copy link
Contributor Author

Thanks for a quick fix!

@HairyFotr
Copy link
Owner

And thank you for reporting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants