def test spec price shorts map lambda spec counts map lambda spec num

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
def test(spec, price):
shorts = map(lambda x: x[0], spec)
counts = map(lambda x: x[1], spec)
num = map(lambda x: x[0], enumerate(spec, start=1))
names = map(lambda x: price[x]['description'], shorts)
cost = map(lambda x: price[x]['price'], shorts)
total = map(lambda x, y: x*y, counts, cost)
return map(lambda *args: (args),
map(lambda x: x[0], enumerate(spec, start=1)),
map(lambda x: price[x]['description'], map(lambda x: x[0], spec)),
map(lambda x: x[1], spec),
map(lambda x: price[x]['price'], map(lambda x: x[0], spec)),
map(lambda x, y: x*y, map(lambda x: price[x]['price'], map(lambda x: x[0], spec)), map(lambda x: price[x]['price'], map(lambda x: x[0], spec))))