2 Feb
2023
2 Feb
'23
8:23 p.m.
What about a `builtins.map` analogue; `TypeMap[MyGeneric, *Ts]`: def product(it: Iterable[*Ts]) -> Iterable[TypeMap[tuple, *Ts]]: ... def zip(it: Iterable[*Ts]) -> Iterable[TypeMap[tuple, *Ts]]: ... def map(f: Callable[P, S], it: TypeMap[Iterable, P]) -> Iterable[S]: ... def make_boxed(x: *Ts) -> tuple[*TypeMap[Boxed, *Ts]]: ...