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 operator can be used in list and dicts, not just lists #9

Open
ExtReMLapin opened this issue Dec 30, 2020 · 1 comment
Open

in operator can be used in list and dicts, not just lists #9

ExtReMLapin opened this issue Dec 30, 2020 · 1 comment

Comments

@ExtReMLapin
Copy link

According to this :

function operator_in(item, items)

It only checks if it's a list, but you could use in in python even for hashtables, then you would need in lua just to do

if dict[key] then

python code being

if key in dict
@focat69
Copy link

focat69 commented Mar 19, 2022

thats smart! u should try making a pr.

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