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
Replying to @Dementophobia
Python's set operations actually provide a way to do this directly: `set.intersection(*list_of_sets)`
1
0
2
Nice, this feels very pythonic. Thanks for sharing!
0
0
0