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

Feature request: support for contains on arrays #23

Open
andrewdbate opened this issue Mar 7, 2015 · 1 comment
Open

Feature request: support for contains on arrays #23

andrewdbate opened this issue Mar 7, 2015 · 1 comment

Comments

@andrewdbate
Copy link

Would this be possible? Writing

{ arr contains _ }

as an anonymous function just looks a lot more readable than:

{ p => arr exists { _ == p } }

What do you think?

Using such an anonymous function in a filterNot is quite handy the absence of support for diff on arrays.

@ochafik
Copy link
Member

ochafik commented Mar 16, 2015

Hey @andrewdbate,

Definitely sounds like a good idea, thanks for the suggestion!

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

No branches or pull requests

2 participants