Thanks, @electrical :)

My main concern was "is this code readable" rather than "is this code correct". I'm still not sure I like this line, but that I can figure out what it does without running it is a good sign