3 ms·
> sum(map(lambda s: len(s) if s.startswith('a') else 0,['abac','bced','asdasdf','lkjkl','assadf'])) I'd rather have comprehensions than map and filter that can
by higerordermap 6y ago
> sum(map(lambda s: len(s) if s.startswith('a') else 0,['abac','bced','asdasdf','lkjkl','assadf']))
I'd rather have comprehensions than map and filter that can't fit in pipeline.