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

Compare a table's values to the collection, even if the keys aren't the same #3

Open
imliam opened this issue May 17, 2017 · 0 comments

Comments

@imliam
Copy link
Owner

imliam commented May 17, 2017

A method to return a boolean; if true, the table passed to the method matches the values in the collection, even if they do not share the same keys and order.

collect({'cats', 'dogs', 'rabbits'}):match({'dogs', 'rabbits', 'cats'})
-- true

collect({'cats', 'dogs', 'rabbits'}):match({'cats'})
-- false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant