ertk.utils.itmap

ertk.utils.itmap(s: Callable[[T1], T2])

Returns a new map function that additionally maps tuples to tuples and lists to lists.

Parameters:
s: callable

A callable that converts objects of type T to type S.

Returns:
callable

A function that converts objects of type T to type S, lists of T to lists of S, and tuples of T to tuples of S.