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

in binary operator (Python-like) #735

Open
emil14 opened this issue Oct 20, 2024 · 0 comments
Open

in binary operator (Python-like) #735

emil14 opened this issue Oct 20, 2024 · 0 comments
Labels

Comments

@emil14
Copy link
Collaborator

emil14 commented Oct 20, 2024

See #721

The idea is to have in operator that emits bool and works for lists, dicts and maybe even streams (should probably be overloaded)

Before

lists.Has
---
collection -> has:lst
msg -> has:el
has -> println

After

(msg in collection) -> println

For dict it checks key and for lists it checks value

Questions

@emil14 emil14 added the Idea label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant