Skip to content

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

Open

Description

@ExtReMLapin

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

Activity

  1. focatdev commented on Mar 19, 2022

    @focatdev

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions