hannah
0
Q:

paco reduce

async def reducer(acc, num):
   return acc + num

await paco.reduce(reducer, [1, 2, 3, 4, 5], initializer=0)
# => 15
1
import paco

async def reducer(acc, num):
   return acc + num

await paco.reduce(reducer, [1, 2, 3, 4, 5], initializer=0)
# => 15
0

New to Communities?

Join the community