pull down to refresh

TIL: a one liner to toggle a variable between values of 0 and 1. Elegant.
a[j] = 1 - a[j]