Is there an idiomatic way to mask elements of an array in vanilla Python 3? For example:
a = [True, False, True, False] b = [2, 3, 5, 7] b[a]