📅  最后修改于: 2022-03-11 14:55:56.682000             🧑  作者: Mango
代码示例2
import paco
async def reducer(acc, num):
return acc + num
await paco.reduce(reducer, [1, 2, 3, 4, 5], initializer=0)
# => 15