Express rules: allow indexing in sets

This commit is contained in:
Thomas Krijnen
2023-02-03 21:17:08 +01:00
parent 078bf8646a
commit 5526bed4c3
@@ -648,7 +648,9 @@ class express_set(set):
__radd__ = __add__
def __repr__(self):
return repr(set(self))
def __getitem__(self, k):
# @todo this is obviously not stable, but should be good enough?
return list(self)[k]
def typeof(inst):
if not inst: