erg/tests/should_ok/map.er
2024-04-04 23:24:07 +09:00

7 lines
160 B
Python

id x = x
ids = List.__call__(map(id, ["1", "2", "3"]))
ints = List.__call__(map(int, ["1", "2", "3"]))
assert ids == ["1", "2", "3"]
assert ints == [1, 2, 3]