|
@@ -149,3 +149,6 @@ class Pipe:
|
|
|
class PipeMap(Pipe):
|
|
|
def __init__(self, function: typing.Callable[[typing.Any], typing.Any]) -> None:
|
|
|
self._function = functools.partial(map, function)
|
|
|
+
|
|
|
+
|
|
|
+assert range(65, 68) | PipeMap(chr) | PipeMap(str.lower) | Pipe(list) == ["a", "b", "c"]
|