master > master: code py - korrigierte logik

This commit is contained in:
RD
2022-06-14 12:19:35 +02:00
parent f45781be71
commit e3c3bbec37
3 changed files with 49 additions and 34 deletions

View File

@@ -88,5 +88,9 @@ class Mask():
'''
return Mask([ MaskValue.ONE if u == MaskValue.UNSET else u for u in self.values ]);
@property
def support(self) -> List[int]:
return [ i for i, v in enumerate(self.values) if v == MaskValue.ONE ];
def empty_mask(n: int):
return Mask([MaskValue.UNSET for _ in range(n)]);