Looking at the python solutions, an extension func...
# advent-of-code
a
Looking at the python solutions, an extension function Boolean.toInt might be worthwhile