Today's #AdventOfCode puzzle requires applying operators to a list of sets. The #Python Standard Library offers functools for functional programming, and reduce() is exactly what we are looking for. Below I show how to apply the AND operator on a list of sets using reduce().
6:06 AM · Dec 6, 2020
2
1
3
If you want to learn more about reduce() and how to use it effectively, @realpython has a comprehensive tutorial about it.
realpython.com/python-reduce…
1
0
2


