optimize ux

This commit is contained in:
Jan-Niclas Loosen
2025-04-17 18:08:18 +02:00
commit 26118be87f
12 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from collections.abc import Callable
class REAL:
def __init__(self, f: Callable[[int], str]) -> None:
self.binseq = f
def as_string(self, w: int) -> str:
s = ""
for n in range(w):
s += self.binseq(n)
return s