[lang-ref] ( map_with_lambda ) ( python )
def test_map_with_lambda():
items = [1, 2, 3]
r = list(map(lambda x: x * 2, items))
assert r == [2, 4, 6]
def test_map_with_lambda():
items = [1, 2, 3]
r = list(map(lambda x: x * 2, items))
assert r == [2, 4, 6]